Skip to content

Commit

Permalink
fix: release and publish (#441)
Browse files Browse the repository at this point in the history
<!--
Thank you for proposing a pull request! Please note that SOME TESTS WILL
LIKELY FAIL due to how GitHub exposes secrets in Pull Requests from
forks.
Someone from the team will review your Pull Request and respond.

Please describe your change and any implementation details below.
-->
  • Loading branch information
verbanicm authored Oct 23, 2024
1 parent 3ac2c41 commit d00eb05
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 d00eb05

Please sign in to comment.