Skip to content

Commit

Permalink
use deploy-pages@v2
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurano committed Nov 1, 2023
1 parent 1356071 commit e681b6e
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
repository_dispatch:

jobs:
publish:
build:
runs-on: ubuntu-latest
container:
image: texlive/texlive
Expand Down Expand Up @@ -96,13 +96,21 @@ jobs:
cat ./public/index.md >> ./rules/index.md
cp -uprv ./rules/* ./public/
- name: pages
uses: peaceiris/actions-gh-pages@v3
uses: actions/upload-pages-artifact@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public
enable_jekyll: true
force_orphan: true
cname: rules.ricos.co.jp
path: public
deploy:
needs: build
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
steps:
- uses: actions/deploy-pages@v2
id: deployment
dispatch:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit e681b6e

Please sign in to comment.