Skip to content

Commit c40e8a4

Browse files
committed
Update Github Actions
1 parent d9bf173 commit c40e8a4

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/deploy.yml

+17-8
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,20 @@ jobs:
1919
- name: Build
2020
run: npm run build # The build command of your project
2121

22-
- name: Push
23-
uses: s0/git-publish-subdir-action@develop
24-
env:
25-
REPO: self
26-
BRANCH: gh-pages
27-
FOLDER: build
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
MESSAGE: "Build: ({sha}) {msg}" # The commit message
22+
- name: Upload static files as artifact
23+
id: deployment
24+
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
25+
with:
26+
path: build/
27+
28+
# Deployment job
29+
deploy:
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deployment.outputs.page_url }}
33+
runs-on: ubuntu-latest
34+
needs: build
35+
steps:
36+
- name: Deploy to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)