Skip to content

Commit 9de5248

Browse files
committed
update
1 parent 16e5c8d commit 9de5248

File tree

1 file changed

+13
-29
lines changed

1 file changed

+13
-29
lines changed

.github/workflows/publish.yaml

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,34 @@
1-
name: Deploy botlist.json to GitHub Pages
1+
name: Deploy botlist
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [ main ]
76
paths:
8-
- 'botlist.json'
9-
- 'botlist.txt'
10-
- '.github/workflows/publish.yaml'
11-
7+
- botlist.json
8+
- botlist.txt
9+
- .github/workflows/publish.yaml
1210
workflow_dispatch:
1311

1412
permissions:
1513
contents: read
1614
pages: write
1715
id-token: write
1816

19-
concurrency:
20-
group: pages
21-
cancel-in-progress: false
22-
2317
jobs:
2418
deploy:
2519
environment:
2620
name: github-pages
27-
url: ${{ steps.deployment.outputs.page_url }}
28-
2921
runs-on: ubuntu-latest
3022
steps:
31-
- name: Checkout repository
32-
uses: actions/checkout@v4
33-
34-
- name: Verify botlist.json exists
35-
run: |
36-
if [ ! -f botlist.json ]; then
37-
exit 1
38-
fi
23+
- uses: actions/checkout@v4
3924

40-
- name: Setup GitHub Pages
41-
uses: actions/configure-pages@v5
25+
- run: |
26+
mkdir -p _site
27+
[ -f botlist.json ] && cp botlist.json _site/
28+
[ -f botlist.txt ] && cp botlist.txt _site/
4229
43-
- name: Upload artifact
44-
uses: actions/upload-pages-artifact@v3
30+
- uses: actions/upload-pages-artifact@v3
4531
with:
46-
path: _site/
32+
path: _site
4733

48-
- name: Deploy to GitHub Pages
49-
id: deployment
50-
uses: actions/deploy-pages@v4
34+
- uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)