-
Notifications
You must be signed in to change notification settings - Fork 60
43 lines (34 loc) · 1.05 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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,storage
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"