Skip to content

Commit

Permalink
Cache build between jobs (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
LamboCreeper authored May 1, 2024
1 parent 981fc61 commit 8b790ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
echo "REACT_APP_ENV=production" >> .env
npm ci
npm run build
- uses: actions/upload-artifact@v4
with:
name: hosting
path: ./hosting/build
retention-days: 1
if-no-files-found: error

deploy:
runs-on: ubuntu-latest
Expand All @@ -23,4 +29,8 @@ jobs:
- build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v4
with:
name: hosting
path: ./hosting/build
- run: npx firebase-tools deploy --token "${{ secrets.FIREBASE_TOKEN }}"

0 comments on commit 8b790ea

Please sign in to comment.