Skip to content

Commit e6daf5e

Browse files
authored
Merge pull request #15 from code-star/fix/fix_avatars
fix: fix test pipeline
2 parents 2b0119c + 736ac0f commit e6daf5e

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,20 @@ on:
55
branches:
66
- main
77

8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
19+
820
jobs:
921
build:
10-
1122
runs-on: ubuntu-latest
1223

1324
strategy:
@@ -36,19 +47,12 @@ jobs:
3647
npx next build && npx next export
3748
touch out/.nojekyll
3849
# CI: false # true -> fails on warning
39-
# - name: Deploy 🚀
40-
# uses: JamesIves/github-pages-deploy-action@v4
41-
# with:
42-
# token: ${{ secrets.GITHUB_TOKEN }}
43-
# branch: gh-pages # The branch the action should deploy to.
44-
# folder: out # The folder the action should deploy.
45-
# clean: true # Automatically remove deleted files from the deploy branch
4650
- name: Setup Pages
4751
uses: actions/configure-pages@v5
4852
- name: Upload artifact
4953
uses: actions/upload-pages-artifact@v3
5054
with:
51-
path: 'out'
55+
path: "out"
5256
- name: Deploy to GitHub Pages 🚀
5357
id: deployment
54-
uses: actions/deploy-pages@v4
58+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)