From 4751d073bbbd09a4f38f0521afcfe4d2f27f816c Mon Sep 17 00:00:00 2001 From: Kathryn Baldauf Date: Fri, 13 Jun 2025 14:45:16 -0700 Subject: [PATCH] Improve release tag regex (#122) Matches changes made in https://github.com/apple/container/pull/187 by @Thedarkmatter10 Signed-off-by: Kathryn Baldauf --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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