Skip to content

Version 3.3.1

Version 3.3.1 #27

Workflow file for this run

name: Deploy
on:
release:
types: [published]
jobs:
deploy:
name: Production
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: npm ci
working-directory: functions
- name: Set env
run: echo "VITE_SWF_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- run: npm run build
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy -P default --only database,functions
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
- name: Deploy to Netlify
uses: South-Paw/action-netlify-deploy@v1.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: "./dist"
config-path: "./netlify.toml"