Skip to content

Commit 5b75fb6

Browse files
authored
Rewrite using offitial workflow
see: https://github.com/actions/deploy-pages/tree/main
1 parent 7ee5774 commit 5b75fb6

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

.github/workflows/stats.yaml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ on:
77
push:
88
branches: [ main ]
99

10+
concurrency:
11+
group: "pages"
12+
cancel-in-progress: false
13+
1014
jobs:
11-
generate-and-deploy:
15+
generate-and-build:
1216
runs-on: ubuntu-latest
1317

1418
permissions:
@@ -49,11 +53,27 @@ jobs:
4953
5054
mkdir -p deploy-files
5155
cp out.svg deploy-files/
52-
53-
- name: Deploy to GitHub Pages
54-
uses: peaceiris/actions-gh-pages@v3
56+
57+
- name: Setup Pages
58+
uses: actions/configure-pages@v5
59+
60+
- name: Build with Jekyll
61+
uses: actions/jekyll-build-pages@v1
5562
with:
56-
github_token: ${{ secrets.GITHUB_TOKEN }}
57-
publish_dir: ./deploy-files
58-
keep_files: false
59-
allow_empty_commit: false
63+
source: ./deploy-files
64+
destination: ./_site
65+
66+
- name: Upload artifact
67+
uses: actions/upload-pages-artifact@v3
68+
69+
# Deployment job
70+
deploy:
71+
environment:
72+
name: github-pages
73+
url: ${{ steps.deployment.outputs.page_url }}
74+
runs-on: ubuntu-latest
75+
needs: generate-and-build
76+
steps:
77+
- name: Deploy to GitHub Pages
78+
id: deployment
79+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)