mirror of
https://github.com/kou029w/intro-to-hasura.git
synced 2025-01-18 16:08:04 +00:00
use actions/deploy-pages
This commit is contained in:
parent
9923a18265
commit
b3f9d89761
1 changed files with 9 additions and 14 deletions
23
.github/workflows/github-pages.yml
vendored
23
.github/workflows/github-pages.yml
vendored
|
@ -4,20 +4,15 @@ on:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
environment: github-pages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Git config
|
- run: npx @marp-team/marp-cli README.md -o pages/index.html
|
||||||
run: |
|
- uses: actions/upload-pages-artifact@v1
|
||||||
git config user.name bot
|
with:
|
||||||
git config user.email bot@example
|
path: pages
|
||||||
- name: Build
|
- uses: actions/deploy-pages@v1
|
||||||
run: |
|
|
||||||
git subtree add --prefix pages origin gh-pages
|
|
||||||
npx @marp-team/marp-cli README.md -o pages/index.html
|
|
||||||
- name: Publish
|
|
||||||
run: |
|
|
||||||
git add -f pages
|
|
||||||
if git commit -m update; then
|
|
||||||
git subtree push --prefix pages origin gh-pages
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue