Skip to content

Commit

Permalink
deploy to GCS instead of gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderjophus committed Oct 31, 2023
1 parent 29450a6 commit 402dcbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 2 additions & 0 deletions web/Dioxus.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ out_dir = "site"
# HTML title tag content
title = "Formula 1 GraphQL Experiment"

base_path = "/f1graph-web"

# include `assets` in web platform
[web.resource]

Expand Down

0 comments on commit 402dcbf

Please sign in to comment.