Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Commit

Permalink
fix ci setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ohyama committed Mar 29, 2020
1 parent 5357d85 commit ca93054
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,16 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
- run: yarn run test
- run: yarn run generate:deploy --fail-on-page-error
env:
GOOGLE_ANALYTICS_TRACKING_ID: UA-160592267-1

- name: Temporarily disable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
if: always()
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
branch: prod-pages

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: prod-pages

- name: Enable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
if: always() # Force to always run this step to ensure "include administrators" is always turned back on
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
owner: tokyo-metropolitan-gov
repo: covid19
branch: prod-pages


# Disabled create release
# - name: Create GitHub release
# uses: rymndhng/release-on-push-action@master
# with:
# bump_version_scheme: patch

0 comments on commit ca93054

Please sign in to comment.