Skip to content

Commit

Permalink
Updated deploy workflows to GitHub official actions. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinoruSekine committed May 1, 2024
1 parent a5f38b7 commit 11271cd
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

jobs:
deploy:
upload_artifact:
runs-on: ubuntu-latest

steps:
Expand All @@ -18,8 +18,23 @@ jobs:
run: |
make site
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v3.0.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out/site
path: ./out/site

deploy:
needs: upload_artifact
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4.0.5

0 comments on commit 11271cd

Please sign in to comment.