Merge pull request #8 from HackDavis/feat/HeaderFooter #3
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: Staging Deployment | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
deploy_staging: | |
name: Deploy Staging | |
runs-on: ubuntu-latest | |
environment: | |
name: staging | |
url: ${{ vars.ENV_URL }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '21.7.3' | |
- name: Install dependencies | |
run: npm install | |
- name: Lint and build code, then publish to Vercel | |
run: > | |
vercel | |
--token ${{ secrets.VERCEL_TOKEN }} | |
-n ${{ vars.VERCEL_PROJECT }} | |
--yes | |
--prod | |
- name: Success | |
run: echo "π Deploy successful - BLAST OFF WOO! (woot woot) !!! π π π π " |