diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index dfe0650..1c0dd40 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -4,20 +4,15 @@ on: branches: [main] jobs: main: + permissions: + pages: write + id-token: write + environment: github-pages runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Git config - run: | - git config user.name bot - git config user.email bot@example - - name: Build - 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 + - run: npx @marp-team/marp-cli README.md -o pages/index.html + - uses: actions/upload-pages-artifact@v1 + with: + path: pages + - uses: actions/deploy-pages@v1