Skip to content

Commit 3321c80

Browse files
committed
rewort pages deployment
1 parent c297359 commit 3321c80

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

.github/workflows/paper.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,35 @@ jobs:
3535
path: ./github_artifacts
3636
deploy:
3737
needs: [build]
38+
# Allows you to run this workflow manually from the Actions tab
39+
workflow_dispatch:
40+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
3841
permissions:
39-
contents: write
42+
contents: read
43+
pages: write
44+
id-token: write
45+
concurrency:
46+
group: "pages"
47+
cancel-in-progress: false
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
4051
runs-on: ubuntu-latest
4152
steps:
4253
- name: Checkout
4354
uses: actions/checkout@v4
55+
- name: Setup Pages
56+
uses: actions/configure-pages@v5
4457
- uses: actions/download-artifact@v4
4558
with:
4659
path: github_artifacts
4760
- name: move
4861
run: mkdir -p github_deploy && mv github_artifacts/*/* github_deploy
49-
- name: deploy on orphan branch
50-
uses: peaceiris/actions-gh-pages@v4
62+
- name: Upload artifact
63+
uses: actions/upload-pages-artifact@v3
5164
with:
52-
github_token: ${{ secrets.GITHUB_TOKEN }}
53-
publish_dir: ./github_deploy
54-
publish_branch: build
55-
force_orphan: true
56-
65+
# Upload entire repository
66+
path: 'github_deploy'
67+
- name: Deploy to GitHub Pages
68+
id: deployment
69+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)