-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.1 KB
/
deploy-dev.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
44
45
46
47
48
49
50
51
52
name: deploy-dev
on:
push:
branches: ['main']
workflow_dispatch:
permissions:
contents: read
id-token: write
concurrency:
group: 'deploy-dev'
cancel-in-progress: false
env:
NODE_VERSION: '18.x'
NUXT_PUBLIC_NATALIE_ENV: 'dev'
jobs:
build-deploy-dev:
runs-on: ubuntu-latest
environment:
name: deploy-dev
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup nodejs ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: npm ci
run: npm ci
- name: generate static files
run: npm run generate
- name: auth
uses: google-github-actions/auth@v1
with:
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.SERVICE_ACCOUNT }}
- name: deploy to Google Cloud Storage
uses: google-github-actions/upload-cloud-storage@v1
with:
path: ./dist
destination: ${{ secrets.BUCKET_NAME }}
parent: false