Skip to content

Commit

Permalink
Release only on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
foorschtbar authored Dec 30, 2022
1 parent 6b54b33 commit cd28646
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
needs: build
name: Release LaTeX document
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download artifacts 💾
uses: actions/download-artifact@v3
Expand All @@ -42,5 +42,6 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "Mitgliedsantrag_Westwoodlabs.pdf"
tag: ${{ github.ref }}
overwrite: false
release_name: "Mitgliedsantrag Westwoodlabs"
release_name: "Mitgliedsantrag Westwoodlabs"

0 comments on commit cd28646

Please # to comment.