Deploy to PROD #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to PROD | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "src/**" | |
- "package.json" | |
workflow_run: | |
workflows: ["CI"] | |
types: [completed] | |
jobs: | |
deploy_live_website: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- run: npm install | |
- run: npm run build | |
# Add any build steps here. For example: | |
# - run: npm ci && npm run build | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_PLAYLIST_VIEW_SORTER }}" | |
projectId: playlist-view-sorter | |
channelId: live |