chore: bump dependencies #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: Build and Deploy | |
env: | |
GITHUB_URL: https://fitness.trovster.com | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Create .env file | |
env: | |
API_BASE: ${{ vars.API_BASE }} | |
API_KEY: ${{ secrets.API_KEY }} | |
run: | | |
touch .env | |
echo API_BASE="${{ vars.API_BASE }}" >> .env | |
echo API_KEY="${{ secrets.API_KEY }}" >> .env | |
- name: Install and Build 🔧 | |
run: | | |
npm ci | |
npm test | |
npm run build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
branch: gh-pages | |
folder: dist |