File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,16 +25,40 @@ jobs:
2525 uses : actions/checkout@v5
2626 with :
2727 fetch-depth : 0
28-
28+ # Step 1: Determine Tag and Release Name based on branch
29+ # This sets environment variables for the rest of the workflow
30+ # name is different if it's dev banch or other (main or master)
31+ - name : Set Release Variables
32+ run : |
33+ if [[ "${{ github.ref_name }}" == "dev" ]]; then
34+ echo "TARGET_TAG=Development" >> $GITHUB_ENV
35+ echo "RELEASE_NAME=Development Build" >> $GITHUB_ENV
36+ else
37+ echo "TARGET_TAG=Nightly" >> $GITHUB_ENV
38+ echo "RELEASE_NAME=Nightly Build" >> $GITHUB_ENV
39+ fi
40+
41+ # Step 2: Update the local and remote tag (using the dynamic tag name)
42+ - name : Move Tag
43+ uses : RichCode/action-release-tagger@v1.1.0
44+ with :
45+ tag_name : ${{ env.TARGET_TAG }}
46+ env :
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48+
49+ # Step 3: Generate the file to upload
2950 - name : Generate changelog
3051 run : git log --pretty=format:"%ad %an %s" --date=short > Git-Changelog.txt
31-
52+
53+ # Step 3: Update the GitHub Release page
3254 - name : Add auxiliary files to the release
3355 uses : softprops/action-gh-release@v2
3456 env :
3557 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3658 with :
37- name : Nightly
59+ name : Nightly Build - $(date +'%Y-%m-%d')
3860 tag_name : Nightly
3961 prerelease : true
4062 files : Git-Changelog.txt
63+ # Overwrite existing assets with the same name
64+ overwrite : true
Original file line number Diff line number Diff line change 1414jobs :
1515 latest :
1616 runs-on : ubuntu-24.04
17+ if : " ${{ secrets.COVERITY_TOKEN != '' }}"
1718 permissions :
1819 contents : read
1920 actions : read
You can’t perform that action at this time.
0 commit comments