Skip to content

Commit

Permalink
fix: release and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
verbanicm committed Oct 23, 2024
1 parent 3ac2c41 commit 72d990f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 34 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/publish.yml

This file was deleted.

25 changes: 21 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,24 @@ jobs:
if: |-
startsWith(github.event.head_commit.message, 'Release: v')
name: 'Release'
uses: 'google-github-actions/.github/.github/workflows/release.yml@v1' # ratchet:exclude
# secrets must be explicitly passed to reusable workflows https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
secrets:
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'
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 }}'
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@google-github-actions/deploy-cloud-functions",
"version": "3.0.6",
"version": "3.0.5",
"description": "Deploy a Cloud Function",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 72d990f

Please sign in to comment.