Skip to content

Commit a22ad61

Browse files
committed
Update deployment
1 parent 4d332e7 commit a22ad61

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# .github/workflows/deploy.yml
2-
name: Deploy to GitHub Pages
1+
name: Deploy static content to Pages
32

43
on:
54
push:
6-
branches: [main]
5+
branches: ["main"]
6+
7+
workflow_dispatch:
78

89
permissions:
910
contents: read
@@ -16,18 +17,19 @@ concurrency:
1617

1718
jobs:
1819
deploy:
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
1923
runs-on: ubuntu-latest
2024
steps:
21-
- name: Checkout repository
25+
- name: Checkout
2226
uses: actions/checkout@v4
23-
2427
- name: Setup Pages
2528
uses: actions/configure-pages@v5
26-
27-
- name: Upload to GitHub Pages
29+
- name: Upload artifact
2830
uses: actions/upload-pages-artifact@v3
2931
with:
3032
path: '.'
31-
3233
- name: Deploy to GitHub Pages
33-
uses: actions/deploy-pages@v4
34+
id: deployment
35+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)