-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29450a6
commit 402dcbf
Showing
2 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,7 +123,7 @@ jobs: | |
steps: | ||
- uses: 'actions/checkout@v3' | ||
|
||
- name: Login to GCR | ||
- name: Login to GCP | ||
env: | ||
PROJECT_ID: f1graph | ||
uses: google-github-actions/[email protected] #checkouts GCR repo, so this workflow can access it | ||
|
@@ -164,10 +164,13 @@ jobs: | |
env: | ||
GQL_ADDR: ${{needs.deploy-graphql.outputs.url}} | ||
run: cd web && dx build --release | ||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
- name: Login to GCP | ||
env: | ||
PROJECT_ID: f1graph | ||
uses: google-github-actions/[email protected] #checkouts GCR repo, so this workflow can access it | ||
with: | ||
branch: gh-pages | ||
folder: web/site | ||
target-folder: . | ||
clean: false | ||
service_account_key: ${{ secrets.GOOGLE_CREDENTIALS }} #parse the value of repository secret called SERVICE_ACCOUNT_KEY that we have created earlier | ||
project_id: ${{ env.PROJECT_ID }} #parse the value of env called PROJECT_ID | ||
export_default_credentials: true | ||
- name: deploy to gcs | ||
run: gsutil -m rsync -d -c -r ./web/site gs://f1graph-web |
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