Skip to content

Commit fe4fa41

Browse files
committed
🏆 Release 0.0.4
1 parent 831d78f commit fe4fa41

File tree

4 files changed

+52
-16
lines changed

4 files changed

+52
-16
lines changed

.github/workflows/app-pipeline.yml

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212

1313
steps:
1414
# Setting up project
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: set up JDK 11
17-
uses: actions/setup-java@v3
17+
uses: actions/setup-java@v4
1818
with:
1919
java-version: '17'
2020
distribution: 'temurin'
@@ -38,26 +38,46 @@ jobs:
3838
path: app/build/outputs/apk/*
3939

4040
cd:
41+
permissions: write-all
4142
runs-on: ubuntu-latest
4243

4344
needs: [ci]
4445

4546
steps:
46-
# Grabing build
47-
- name: Grab Build
48-
uses: actions/download-artifact@v4
49-
with:
50-
name: "Build"
51-
path: build
47+
# Grab source code
48+
- uses: actions/checkout@v4
5249

5350
# Making the release
51+
- name: Extract version nmae
52+
run: echo APP_VERSION=$(grep "versionName" app/build.gradle.kts | sed -e 's/^.* = "\([0-9.]\+\)"/\1/g') >> "$GITHUB_ENV"
53+
5454
- name: Publish to Github
55+
id: create_release
5556
uses: actions/create-release@v1
5657
env:
5758
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5859
with:
59-
tag_name: ${{ github.ref }}
60-
release_name: Alpha Release ${{ github.ref }}
61-
body_path: docs/CHANGELOG.md
60+
tag_name: ${{ env.APP_VERSION }}
61+
release_name: Alpha Release ${{ env.APP_VERSION }}
62+
body_path: ./docs/CHANGELOG.md
6263
draft: false
6364
prerelease: true
65+
66+
# Grabing build
67+
- name: Grab Build
68+
uses: actions/download-artifact@v4
69+
with:
70+
name: "Build"
71+
path: build
72+
73+
# Upload APK to github release
74+
- name: Upload Release Asset
75+
id: upload-release-asset
76+
uses: actions/upload-release-asset@v1
77+
env:
78+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
with:
80+
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
81+
asset_path: ./build/release/app-release-unsigned.apk
82+
asset_name: CallGuard.apk
83+
asset_content_type: application/vnd.android.package-archive

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center" style="text-align: center;">
22

3-
### 0.0.3
3+
### 0.0.4
44
# CallGuard
55

66
<img

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ android {
1212
minSdk = 24
1313
targetSdk = 34
1414
versionCode = 2
15-
versionName = "0.0.3"
15+
versionName = "0.0.4"
1616

1717
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1818
vectorDrawables {

docs/CHANGELOG.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Change Log
22

3+
## [0.0.4] - 2024-03-03
4+
5+
**Theme** : Continuous Deployment
6+
7+
### Added
8+
- Promoting website through github pages
9+
- Publish apk through github releases
10+
11+
### Removed
12+
13+
### Fixed
14+
315
## [0.0.3] - 2024-02-12
416

517
**Theme** : Continuous Integration
@@ -15,7 +27,8 @@
1527

1628
### Fixed
1729

18-
## [0.0.2] - 2024-02-09
30+
<details>
31+
<summary> <b> [0.0.2] - 2024-02-09 </b> </summary>
1932

2033
**Theme** : Android bases
2134

@@ -27,8 +40,10 @@
2740
- Remove old icons
2841

2942
### Fixed
43+
</details>
3044

31-
## [0.0.1] - 2023-12-30
45+
<details>
46+
<summary> <b> [0.0.1] - 2023-12-30 </b> </summary>
3247

3348
**Theme** : Global idea
3449

@@ -39,4 +54,5 @@
3954

4055
### Removed
4156

42-
### Fixed
57+
### Fixed
58+
</details>

0 commit comments

Comments
 (0)