-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (34 loc) · 950 Bytes
/
deploy.yaml
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
on:
push:
branches:
- master
- main
- features/gha
jobs:
deploy:
name: Deploy to start.k8ssandra.io
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build project
shell: bash -e -l {0}
env:
VUE_APP_ROLLBAR_ACCESS_TOKEN: ${{ secrets.VUE_APP_ROLLBAR_ACCESS_TOKEN }}
run: |
nvm install
npm install
npm run build
- name: Install gcloud CLI
uses: google-github-actions/setup-gcloud@master
with:
version: '290.0.1'
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- name: Deploy to GCS
env:
GCP_BUCKET_NAME: ${{ secrets.GCP_BUCKET_NAME }}
run: |
gsutil -m cp -r ./* gs://$GCP_BUCKET_NAME/
working-directory: dist/