Skip to content

Commit

Permalink
🏆 Release 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
StrategFirst committed Mar 5, 2024
1 parent 831d78f commit fe4fa41
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 16 deletions.
42 changes: 31 additions & 11 deletions .github/workflows/app-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:

steps:
# Setting up project
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
Expand All @@ -38,26 +38,46 @@ jobs:
path: app/build/outputs/apk/*

cd:
permissions: write-all
runs-on: ubuntu-latest

needs: [ci]

steps:
# Grabing build
- name: Grab Build
uses: actions/download-artifact@v4
with:
name: "Build"
path: build
# Grab source code
- uses: actions/checkout@v4

# Making the release
- name: Extract version nmae
run: echo APP_VERSION=$(grep "versionName" app/build.gradle.kts | sed -e 's/^.* = "\([0-9.]\+\)"/\1/g') >> "$GITHUB_ENV"

- name: Publish to Github
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Alpha Release ${{ github.ref }}
body_path: docs/CHANGELOG.md
tag_name: ${{ env.APP_VERSION }}
release_name: Alpha Release ${{ env.APP_VERSION }}
body_path: ./docs/CHANGELOG.md
draft: false
prerelease: true

# Grabing build
- name: Grab Build
uses: actions/download-artifact@v4
with:
name: "Build"
path: build

# Upload APK to github release
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build/release/app-release-unsigned.apk
asset_name: CallGuard.apk
asset_content_type: application/vnd.android.package-archive
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center" style="text-align: center;">

### 0.0.3
### 0.0.4
# CallGuard

<img
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {
minSdk = 24
targetSdk = 34
versionCode = 2
versionName = "0.0.3"
versionName = "0.0.4"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
22 changes: 19 additions & 3 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## [0.0.4] - 2024-03-03

**Theme** : Continuous Deployment

### Added
- Promoting website through github pages
- Publish apk through github releases

### Removed

### Fixed

## [0.0.3] - 2024-02-12

**Theme** : Continuous Integration
Expand All @@ -15,7 +27,8 @@

### Fixed

## [0.0.2] - 2024-02-09
<details>
<summary> <b> [0.0.2] - 2024-02-09 </b> </summary>

**Theme** : Android bases

Expand All @@ -27,8 +40,10 @@
- Remove old icons

### Fixed
</details>

## [0.0.1] - 2023-12-30
<details>
<summary> <b> [0.0.1] - 2023-12-30 </b> </summary>

**Theme** : Global idea

Expand All @@ -39,4 +54,5 @@

### Removed

### Fixed
### Fixed
</details>

0 comments on commit fe4fa41

Please sign in to comment.