Skip to content

Commit ec7cd28

Browse files
committed
Fix GitHub Actions workflow and remove unused isho folder
1 parent 3f4cff3 commit ec7cd28

File tree

3 files changed

+37
-524
lines changed

3 files changed

+37
-524
lines changed

.github/workflows/deploy.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
918
jobs:
10-
build-and-deploy:
19+
build:
1120
runs-on: ubuntu-latest
1221

1322
steps:
@@ -26,9 +35,22 @@ jobs:
2635
- name: Build
2736
run: npm run build
2837

29-
- name: Deploy to GitHub Pages
30-
uses: peaceiris/actions-gh-pages@v3
31-
if: github.ref == 'refs/heads/main'
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v4
40+
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
3243
with:
33-
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: ./dist
44+
path: './dist'
45+
46+
deploy:
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
runs-on: ubuntu-latest
51+
needs: build
52+
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)