diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66f1be58..6126acaf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release containerization on: push: tags: - - "[0-9]+.[0-9]+.[0-9]+" + - "[0-9]+\\.[0-9]+\\.[0-9]+" jobs: containerization: @@ -16,7 +16,9 @@ jobs: contents: read packages: write pages: write + deployDocs: + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest needs: containerization permissions: @@ -30,7 +32,9 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + release: + if: startsWith(github.ref, 'refs/tags/') name: Publish release timeout-minutes: 30 needs: containerization @@ -42,7 +46,7 @@ jobs: - name: Create release uses: softprops/action-gh-release@v2 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ github.token }} name: ${{ github.ref_name }}-prerelease draft: true make_latest: false