Skip to content

Commit 2044e20

Browse files
committed
ci: fix deployment workflow
1 parent eec2332 commit 2044e20

1 file changed

Lines changed: 8 additions & 21 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ on:
77
workflow_dispatch:
88

99
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
10+
contents: write
1311

1412
concurrency:
1513
group: pages
1614
cancel-in-progress: true
1715

1816
jobs:
19-
build:
17+
build-and-deploy:
2018
runs-on: ubuntu-latest
2119
steps:
2220
- name: Checkout
2321
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
2424

2525
- name: Setup Node.js
2626
uses: actions/setup-node@v4
@@ -34,21 +34,8 @@ jobs:
3434
- name: Build
3535
run: npm run build
3636

37-
- name: Add CNAME
38-
run: cp CNAME dist/pythoncatania/browser/CNAME
39-
40-
- name: Upload artifact
41-
uses: actions/upload-pages-artifact@v3
37+
- name: Deploy
38+
uses: JamesIves/github-pages-deploy-action@v4
4239
with:
43-
path: dist/pythoncatania/browser
44-
45-
deploy:
46-
needs: build
47-
runs-on: ubuntu-latest
48-
environment:
49-
name: github-pages
50-
url: ${{ steps.deployment.outputs.page_url }}
51-
steps:
52-
- name: Deploy to GitHub Pages
53-
id: deployment
54-
uses: actions/deploy-pages@v4
40+
branch: gh-pages
41+
folder: dist/pythoncatania/browser

0 commit comments

Comments
 (0)