diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 226904811..defd31d3a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,14 +43,17 @@ jobs: && ./google-cloud-sdk/bin/gcloud auth list - name: Sync the branch to the bucket run: | - if [[ "${{ github.ref_name }}" == "main" || "${{ github.ref_name }}" == "latest" ]] + if [[ "${{ github.ref_name }}" == "main" ]] + then + bucket_path=/staging/dev + elif [[ "${{ github.ref_name }}" == "latest" ]] then bucket_path=${{ github.ref_name }} elif [[ "${{ endsWith(github.ref_name, '-build') }}" == "true" ]] then bucket_path=`echo ${{ github.ref_name }} | sed 's/-build$//'` else - bucket_path="/staging/${{ github.ref_name }}" + bucket_path=/staging/${{ github.ref_name }} fi \ && ./google-cloud-sdk/bin/gsutil -m rsync -r -c -j html -d ${{ github.workspace }}/public gs://$BUCKET/$bucket_path - name: End