Skip to content

Commit 63052a7

Browse files
Fix GitHub Actions workflow: Update to latest actions versions
- Use actions/configure-pages@v4 and actions/deploy-pages@v4 - Use actions/upload-pages-artifact@v3 (latest stable) - Split build and deploy into separate jobs for better reliability - This should resolve the deprecated artifact action error
1 parent c64c41e commit 63052a7

1 file changed

Lines changed: 22 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ permissions:
99
pages: write
1010
id-token: write
1111

12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: false
15+
1216
jobs:
13-
deploy:
17+
build:
1418
runs-on: ubuntu-latest
1519
steps:
1620
- name: Checkout
@@ -28,9 +32,21 @@ jobs:
2832
- name: Build
2933
run: npm run build
3034

31-
- name: Deploy to GitHub Pages
32-
uses: peaceiris/actions-gh-pages@v3
35+
- name: Setup Pages
36+
uses: actions/configure-pages@v4
37+
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
3340
with:
34-
github_token: ${{ secrets.GITHUB_TOKEN }}
35-
publish_dir: ./dist
36-
cname: syntaxsidekick.github.io
41+
path: ./dist
42+
43+
deploy:
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
runs-on: ubuntu-latest
48+
needs: build
49+
steps:
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)