Skip to content

Commit 25eeb4b

Browse files
committed
use github pages action to deploy
1 parent ff6ec2b commit 25eeb4b

File tree

3 files changed

+19
-34
lines changed

3 files changed

+19
-34
lines changed

Diff for: .github/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ updates:
33
- package-ecosystem: "github-actions"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "monthly"
77

88
- package-ecosystem: "npm"
99
directory: "/"

Diff for: .github/workflows/deploy.yml

+18-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
name: "Deploy"
22

3-
on:
4-
push:
5-
branches:
6-
- main
3+
on: push
74

85
jobs:
9-
deploy:
10-
name: Deploy
6+
build:
117
runs-on: ubuntu-latest
128
permissions:
139
contents: write
@@ -22,9 +18,20 @@ jobs:
2218
cache: "pnpm"
2319
- run: pnpm install
2420
- run: pnpm run build
25-
- uses: JamesIves/github-pages-deploy-action@v4
26-
name: Deploy to gh-pages
21+
- uses: actions/upload-pages-artifact@v3
2722
with:
28-
branch: gh-pages
29-
folder: dist
30-
single-commit: true
23+
path: "dist/"
24+
25+
deploy:
26+
if: github.ref == 'refs/heads/main'
27+
needs: build
28+
permissions:
29+
pages: write
30+
id-token: write
31+
environment:
32+
name: github-pages
33+
url: ${{ steps.deployment.outputs.page_url }}
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/deploy-pages@v4
37+
id: deployment

Diff for: .github/workflows/test.yml

-22
This file was deleted.

0 commit comments

Comments
 (0)