Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
chore: fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed May 28, 2021
1 parent a6f0f59 commit 97ecf8b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy_test.yml
Expand Up @@ -14,24 +14,26 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/download-artifact@v2
with:
name: nightly
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
version: '341.0.0'
project_id: ${{ secrets.GCP_PROJECT }}
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- uses: dsaltares/fetch-gh-release-asset@master
with:
version: nightly
file: reearth-web_nightly.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
- run: tar -xvf reearth-web_nightly.tar.gz
- name: put reearth_config.json
run: curl -L -o reearth-web/reearth_config.json https://${{ env.REEARTH_URL }}/reearth_config.json
- name: rsync
run: gsutil -m -h "Cache-Control:no-store" rsync -dr reearth-web/ ${{ env.GCS_DEST }}
- name: Slack Notification
uses: Gamesight/slack-workflow-status@master
if: always()
continue-on-error: true
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -35,7 +35,6 @@ jobs:
- name: Slack Notification
uses: Gamesight/slack-workflow-status@master
if: always()
continue-on-error: true
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
8 changes: 1 addition & 7 deletions .github/workflows/nightly.yml
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build
run: yarn build
- name: Package
run: mv build reearth-web && tar -zcvf nightly.tar.gz reearth-web
run: mv build reearth-web && tar -zcvf reearth-web_nightly.tar.gz reearth-web
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
Expand All @@ -42,15 +42,9 @@ jobs:
prerelease: true
tag: nightly
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
with:
name: nightly
path: reearth-web
if-no-files-found: error
- name: Slack Notification
uses: Gamesight/slack-workflow-status@master
if: always()
continue-on-error: true
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
1 change: 0 additions & 1 deletion .github/workflows/pr.yml
Expand Up @@ -39,7 +39,6 @@ jobs:
- name: Slack Notification
uses: Gamesight/slack-workflow-status@master
if: always()
continue-on-error: true
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 97ecf8b

Please sign in to comment.