Skip to content

Commit

Permalink
Merge pull request #841 from kachick/sync-gomod-deploy
Browse files Browse the repository at this point in the history
deploying: Use the same version of go as specified in go.mod
  • Loading branch information
kachick authored Jun 20, 2023
2 parents dcab9ee + b1847ae commit 6ca5e76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: '^1.17.8'
go-version-file: 'hashira-web/functions/go.mod'
cache-dependency-path: 'hashira-web/functions/go.sum'
- run: yarn install
- run: VITE_REVISION="Rev ${{ github.sha }} Build at `date`" yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
types: [opened, synchronize, reopened, labeled]
paths:
- '.github/workflows/firebase-hosting-pull-request.yml'
- 'hashira-web/**'

defaults:
Expand All @@ -19,9 +20,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: '^1.17.8'
go-version-file: 'hashira-web/functions/go.mod'
cache-dependency-path: 'hashira-web/functions/go.sum'
- run: yarn install
- run: VITE_REVISION="Rev ${{ github.event.pull_request.head.sha }} Build at `date`" yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
Expand Down

0 comments on commit 6ca5e76

Please sign in to comment.