Skip to content

deploy-web-nightly #479

deploy-web-nightly

deploy-web-nightly #479

name: deploy-web-nightly
on:
workflow_dispatch:
env:
REEARTH_URL: visualizer.test.reearth.dev
GCS_DEST: gs://reearth-visualizer-oss-static-bucket/
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy_test:
name: Deploy test env
runs-on: ubuntu-latest
if: github.event.repository.full_name == 'reearth/reearth-visualizer'
steps:
- uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
- uses: dsaltares/fetch-gh-release-asset@master
with:
repo: reearth/reearth
version: tags/nightly
file: reearth-web_nightly.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
- run: tar -xvf reearth-web_nightly.tar.gz
- name: rsync
run: gsutil -m -h "Cache-Control:no-store" rsync -x "^reearth_config\\.json$|^cesium_ion_token\\.txt$" -dr reearth-web/ $GCS_DEST