From c2abe51545c7b85ef84a6699f6abab95b7fb39f3 Mon Sep 17 00:00:00 2001 From: Mike Verbanic Date: Tue, 22 Oct 2024 16:13:54 -0400 Subject: [PATCH] feat: add publish workflow --- .github/workflows/publish.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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..2c51cae --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: 'Publish immutable action version' + +on: + 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 }}'