Skip to content

Commit ddf37ff

Browse files
Use versioned tags for nightly releases
This commit updates the `nightly-release.yml` workflow to create version-specific Git tags for each nightly build. Previously, each nightly release overwrote the single `nightly` tag. Now, a unique tag in the format `nightly-${{ env.version }}` is created and pushed for each release. The GitHub Release action has been updated to use this new versioned tag name, ensuring that each nightly release is associated with a distinct and persistent Git tag.
1 parent 48165c5 commit ddf37ff

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/nightly-release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ jobs:
8686
echo "version=$version" >> $GITHUB_ENV
8787
shell: bash
8888

89+
- name: Create Git Tag
90+
run: |
91+
git tag nightly-${{ env.version }}
92+
git push origin nightly-${{ env.version }}
93+
shell: bash
94+
8995
- name: Rename files
9096
run: |
9197
mkdir -p ./build/release/
@@ -95,14 +101,12 @@ jobs:
95101
- name: Create and Upload Release
96102
uses: softprops/action-gh-release@v2.3.2
97103
with:
98-
tag_name: nightly
104+
tag_name: nightly-${{ env.version }}
99105
name: Nightly Release ${{ env.version }}
100106
body: "![GitHub Downloads (total, specific tag)](https://img.shields.io/github/downloads/CodeWorksCreativeHub/mLauncher/nightly/total)"
101107
append_body: false
102-
files: |
103-
./build/release/mLauncher-Nightly-Signed.apk
108+
files: ./build/release/mLauncher-Nightly-Signed.apk
104109
prerelease: true
105110
generate_release_notes: true
106111
env:
107-
version: ${{ env.version }}
108-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)