Skip to content

Commit

Permalink
Use GitHub Pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Jul 28, 2022
1 parent ae10280 commit 813296a
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/GHPages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,28 @@ name: GHPages
on:
push:
branches: [master]
workflow_dispatch: null

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: pages
cancel-in-progress: true

jobs:
deploy-docs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install And Build
run: |+
Expand All @@ -17,9 +33,12 @@ jobs:
cd explorer
npm install
npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Setup Pages
uses: actions/configure-pages@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./explorer/dist
force_orphan: true
path: ./explorer/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 813296a

Please sign in to comment.