Skip to content

Commit bba1d11

Browse files
deploy-pages deploys the artifact to GitHub Pages.
1 parent 533281e commit bba1d11

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
deploy:
2222
# The type of runner that the job will run on
2323
runs-on: ubuntu-latest
24+
25+
permissions:
26+
contents: read
27+
pages: write
28+
id-token: write
2429

2530
# Steps represent a sequence of tasks that will be executed as part of the job
2631
steps:
@@ -38,6 +43,11 @@ jobs:
3843
- name: Build the project
3944
run: npm run build
4045

46+
- name: Upload artifact for Pages
47+
uses: actions/upload-pages-artifact@v1
48+
with:
49+
path: ./www # Path to your build output directory
50+
4151
- name: Check if www folder exists
4252
run: |
4353
ls -la www
@@ -47,6 +57,7 @@ jobs:
4757
git diff --exit-code || echo "There are changes to commit"
4858
4959
- name: Deploy to GitHub Pages
60+
uses: actions/deploy-pages@v1
5061
env:
5162
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5263
run: |

0 commit comments

Comments
 (0)