Skip to content

Commit 8fe2c62

Browse files
committed
Tets autobuild
1 parent 0793310 commit 8fe2c62

2 files changed

Lines changed: 28 additions & 3 deletions

File tree

‎.github/workflows/build_aux_files.yml‎

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff 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

‎.github/workflows/coverity-scan.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
latest:
1616
runs-on: ubuntu-24.04
17+
if: "${{ secrets.COVERITY_TOKEN != '' }}"
1718
permissions:
1819
contents: read
1920
actions: read

0 commit comments

Comments
 (0)