Skip to content

Commit e34b2e3

Browse files
author
Davi Castro Samora
committed
fixing issues with deploy
1 parent 60ff0a4 commit e34b2e3

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: false
815

916
jobs:
1017
build-and-deploy:
@@ -30,10 +37,14 @@ jobs:
3037
run: |
3138
touch out/.nojekyll
3239
33-
- name: Deploy to GitHub Pages
34-
if: github.ref == 'refs/heads/main'
35-
uses: peaceiris/actions-gh-pages@v3
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v4
42+
43+
- name: Upload artifact
44+
uses: actions/upload-pages-artifact@v3
3645
with:
37-
github_token: ${{ secrets.GITHUB_TOKEN }}
38-
publish_dir: ./out
39-
cname: quantumgraph.github.io
46+
path: ./out
47+
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)