Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,16 @@ jobs:
run: |
cd build/release
ninja package

# version is exported from cmake to file
- name: Retrieve version
run: |
VER=$(cat build/release/VERSION.txt)
echo "VERSION=$VER" >> $GITHUB_ENV

- name: Print version
run: |
echo ${{ env.VERSION }}

# Command copied from flathub build process
- name: Validate appdata file
Expand Down Expand Up @@ -306,7 +316,7 @@ jobs:

- name: Test
if: matrix.env.ninja_platform != 'win' && matrix.env.ninja_platform != 'mac'
uses: GabrielBB/xvfb-action@v1
uses: GabrielBB/xvfb-action@v1.6
with:
working-directory: build/release
run: ninja check
Expand Down Expand Up @@ -347,8 +357,12 @@ jobs:
# version is exported from cmake to file
- name: Retrieve version
run: |
echo "::set-output name=VERSION::$(cat artifacts/Gittyup-VERSION/VERSION.txt)"
id: version
VER=$(cat artifacts/Gittyup-VERSION/VERSION.txt)
echo "VERSION=$VER" >> $GITHUB_ENV

- name: Print version
run: |
echo ${{ env.VERSION }}

- name: Update GitHub release (latest tag)
uses: marvinpinto/action-automatic-releases@latest
Expand All @@ -370,7 +384,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
title: Gittyup Release ${{ steps.version.outputs.VERSION }}
title: Gittyup Release ${{ env.VERSION }}
automatic_release_tag: ${{ github.ref_name }}
files: |
**/artifacts/Gittyup win64/Gittyup*.exe
Expand Down