Skip to content

Commit

Permalink
Updating github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisAlund committed May 22, 2024
1 parent ead2d3c commit 5dd2a83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
./hosting/.next/cache/
- name: Build application
run: npm ci && npm run build
run: npm ci && npm install && npm run build
working-directory: ./hosting

- name: Upload build artifact
Expand Down Expand Up @@ -68,5 +68,5 @@ jobs:
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_TANAM_TESTING }}
channelId: live
projectId: tanam-testing
channelId: live
6 changes: 5 additions & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ permissions:
pull-requests: write
jobs:
build:
name: Build
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
Expand All @@ -32,7 +33,7 @@ jobs:
./hosting/.next/cache/
- name: Build application
run: npm ci && npm run build
run: npm ci && npm install && npm run build
working-directory: ./hosting

- name: Upload build artifact
Expand All @@ -43,6 +44,8 @@ jobs:
retention-days: 2

deploy:
name: Deploy preview
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
needs: build
steps:
Expand Down Expand Up @@ -71,3 +74,4 @@ jobs:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_TANAM_TESTING }}
projectId: tanam-testing
expires: 7d

0 comments on commit 5dd2a83

Please sign in to comment.