Skip to content

Commit 893786d

Browse files
CI tweaks.
1 parent 42739c1 commit 893786d

File tree

1 file changed

+15
-28
lines changed

1 file changed

+15
-28
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,34 @@
1-
name: Generate Website
1+
name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: [ 'main' ]
6-
pull_request:
7-
branches: [ 'main' ]
8-
workflow_dispatch:
5+
branches:
6+
- main
97

108
permissions:
119
contents: read
1210
pages: write
1311
id-token: write
1412

15-
concurrency:
16-
group: 'pages'
17-
cancel-in-progress: false
18-
1913
jobs:
20-
build:
14+
deploy:
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
2118
runs-on: ubuntu-latest
19+
2220
steps:
23-
- name: Checkout
21+
- name: Checkout code
2422
uses: actions/checkout@v4
2523

26-
- name: Copy
27-
run: |
28-
mkdir _site
29-
cp -a static/. _site/
24+
- name: Setup Pages
25+
uses: actions/configure-pages@v5
3026

31-
- name: Upload artifact
32-
uses: actions/upload-artifact@v4
27+
- name: Upload subdirectory
28+
uses: actions/upload-pages-artifact@v3
3329
with:
34-
name: _site
35-
path: _site
30+
path: ./static
3631

37-
deploy:
38-
if: github.ref == 'refs/heads/main'
39-
needs: build
40-
environment:
41-
name: github-pages
42-
url: ${{ steps.deployment.outputs.page_url }}
43-
runs-on: ubuntu-latest
44-
steps:
4532
- name: Deploy to GitHub Pages
4633
id: deployment
47-
uses: actions/deploy-pages@v4
34+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)