Skip to content

Commit 9ff1225

Browse files
authored
update workflow
1 parent 17f793a commit 9ff1225

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/build.yaml

+11-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ jobs:
99
runs-on: ubuntu-latest
1010
container:
1111
image: archlinux:latest
12-
permissions:
13-
id-token: write
14-
pages: write
1512
steps:
1613
- uses: actions/checkout@v4
1714
- name: Setup
@@ -34,6 +31,16 @@ jobs:
3431
uses: actions/upload-pages-artifact@v3
3532
with:
3633
path: /tmp/repo
34+
deploy:
35+
needs: build
36+
if: github.event_name != 'pull_request'
37+
runs-on: ubuntu-latest
38+
permissions:
39+
id-token: write
40+
pages: write
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
steps:
3745
- name: Deploy to GitHub Pages
38-
if: github.event.push
3946
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)