Skip to content

Commit

Permalink
ci: test auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
dyaskur committed Sep 8, 2023
1 parent 7de0afa commit 8d2d082
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "tagged-release"

on:
push:
branches: [ "test_auto_release" ]
tags:
- "v*"
permissions: read-all
Expand All @@ -11,16 +12,23 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2
- name: Archive Release
uses: thedoctor0/zip-release@a24011d8d445e4da5935a7e73c1f98e22a439464
with:
type: 'zip'
filename: 'release.zip'
exclusions: '*.git* /*node_modules/* /*tests/* *tests/* *.github*'
- uses: 'actions/checkout@v3'

- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: Use Node.js
uses: actions/setup-node@v3
- run: yarn install

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'

# Now you can run gcloud commands authenticated as the impersonated service account.
- id: 'gcloud'
name: 'gcloud'
run: |-
yarn deploy
- name: Upload Release
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5
with:
artifacts: "release.zip"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8d2d082

Please sign in to comment.