From 121eacc88e8c960a868902a19ce47d4c6c42f11a Mon Sep 17 00:00:00 2001 From: Mike Verbanic Date: Thu, 24 Oct 2024 10:52:13 -0400 Subject: [PATCH] feat: new release process (#443) --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ .github/workflows/release.yml | 22 +--------------------- 2 files changed, 26 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..64566b6 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: 'Publish immutable action version' + +on: + workflow_dispatch: + release: + types: + - 'published' + +jobs: + publish: + runs-on: 'ubuntu-latest' + permissions: + contents: 'read' + id-token: 'write' + packages: 'write' + + steps: + - name: 'Checkout' + uses: 'actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871' # ratchet:actions/checkout@v4 + + - name: 'Publish' + id: 'publish' + uses: 'actions/publish-immutable-action@4b1aa5c1cde5fedc80d52746c9546cb5560e5f53' # ratchet:actions/publish-immutable-action@v0.0.3 + with: + github-token: '${{ secrets.GITHUB_TOKEN }}' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 894d36a..c8c7c43 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,24 +11,4 @@ jobs: if: |- startsWith(github.event.head_commit.message, 'Release: v') name: 'Release' - uses: 'google-github-actions/.github/.github/workflows/release.yml@v0' # ratchet:exclude - - publish: - if: |- - startsWith(github.event.head_commit.message, 'Release: v') - runs-on: 'ubuntu-latest' - needs: 'release' - permissions: - contents: 'read' - id-token: 'write' - packages: 'write' - - steps: - - name: 'Checkout' - uses: 'actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871' # ratchet:actions/checkout@v4 - - - name: 'Publish' - id: 'publish' - uses: 'actions/publish-immutable-action@4b1aa5c1cde5fedc80d52746c9546cb5560e5f53' # ratchet:actions/publish-immutable-action@v0.0.3 - with: - github-token: '${{ secrets.GITHUB_TOKEN }}' + uses: 'google-github-actions/.github/.github/workflows/release.yml@v1' # ratchet:exclude