Skip to content

Commit

Permalink
Merge pull request #19 from MinoruSekine/feat/6/update_deploy_actions
Browse files Browse the repository at this point in the history
Updated deploy workflows to GitHub official actions. (#6)
  • Loading branch information
MinoruSekine authored May 1, 2024
2 parents a5f38b7 + 11271cd commit 9fdfe9b
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 9fdfe9b

Please sign in to comment.