Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bwachter committed Jul 31, 2024
1 parent c68b063 commit bedd580
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: Build and publish

on:
push:
tags: ['[0-9]+.[0-9]+.[0-9]+']
branches: [ master ]
workflow_dispatch:

jobs:
login:
build:
name: Build
runs-on: ubuntu-24.04
steps:
Expand Down Expand Up @@ -34,3 +35,21 @@ jobs:
git add --all
git commit -m "Update doxygen documentation" -a || true
git push "https://${GITHUB_ACTOR}:${INPUT_GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
release:
name: Release
needs: [ build ]
runs-on: ubuntu-24.04
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Pull build artifacts
uses: actions/download-artifact@v4
with:
name: artifacts
path: artifacts
- name: Publish Github Release
uses: ncipollo/release-action@00fc2857229c3d51311c8ff6e4954b38203edbd4
with:
artifacts: "artifacts/*.exe,artifacts/*.dll,artifacts/*.msi"
makeLatest: true
allowUpdates: true
generateReleaseNotes: true

0 comments on commit bedd580

Please sign in to comment.