Skip to content

Commit 4396128

Browse files
committed
Following github recommendations on this
1 parent d60e3df commit 4396128

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/actions.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ jobs:
2121
- name: Run tests
2222
run: npm test
2323
build:
24-
permissions:
25-
contents: write
26-
pages: write
27-
id-token: write
2824
runs-on: ubuntu-latest
2925
steps:
3026
- name: Checkout repository
@@ -37,6 +33,11 @@ jobs:
3733
run: npm ci
3834
- name: Build Website
3935
run: npm run build
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v4
38+
with:
39+
name: output-artifact
40+
path: output/
4041
deploy:
4142
needs: build
4243
permissions:
@@ -48,16 +49,6 @@ jobs:
4849
url: ${{ steps.deployment.outputs.page_url }}
4950
runs-on: ubuntu-latest
5051
steps:
51-
- uses: actions/checkout@v6
52-
- uses: actions/setup-node@v6
53-
- name: Check the files present
54-
run: |
55-
ls -la .
56-
ls -la output
57-
- name: Upload artifact
58-
uses: actions/upload-pages-artifact@v3
59-
with:
60-
path: ./output
6152
- name: Deploy to GitHub Pages
6253
id: deployment
6354
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)