diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 988280f..1aa6d57 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -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 @@ -42,5 +42,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: "Mitgliedsantrag_Westwoodlabs.pdf" + tag: ${{ github.ref }} overwrite: false - release_name: "Mitgliedsantrag Westwoodlabs" \ No newline at end of file + release_name: "Mitgliedsantrag Westwoodlabs"