Skip to content

Commit

Permalink
feat: new release process
Browse files Browse the repository at this point in the history
  • Loading branch information
verbanicm committed Oct 24, 2024
1 parent 16f2a5e commit 447bd6f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}'
22 changes: 1 addition & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 447bd6f

Please sign in to comment.