Skip to content

Commit 0b42a21

Browse files
authored
Add deployment step for GitHub Pages
1 parent 1e28c89 commit 0b42a21

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/python-app.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ permissions:
1414

1515
jobs:
1616
build:
17-
1817
runs-on: ubuntu-latest
19-
2018
steps:
2119
- uses: actions/checkout@v4
2220
- name: Set up Python 3.10
@@ -35,3 +33,13 @@ jobs:
3533
with:
3634
name: index-html-artifact
3735
path: ./index.html
36+
deploy:
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
runs-on: ubuntu-latest
41+
needs: build
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)