Skip to content

Commit 1f0850a

Browse files
committed
Simplify GitHub Actions workflow for deployment to GitHub Pages.
1 parent 097fa9a commit 1f0850a

File tree

1 file changed

+9
-25
lines changed

1 file changed

+9
-25
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,10 @@ on:
77
workflow_dispatch:
88

99
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
13-
14-
concurrency:
15-
group: "pages"
16-
cancel-in-progress: false
10+
contents: write
1711

1812
jobs:
19-
build:
13+
deploy:
2014
runs-on: ubuntu-latest
2115
steps:
2216
- name: Checkout
@@ -34,21 +28,11 @@ jobs:
3428
- name: Build website
3529
run: yarn build
3630

37-
- name: Setup Pages
38-
uses: actions/configure-pages@v4
39-
40-
- name: Upload artifact
41-
uses: actions/upload-pages-artifact@v3
42-
with:
43-
path: ./build
44-
45-
deploy:
46-
environment:
47-
name: github-pages
48-
url: ${{ steps.deployment.outputs.page_url }}
49-
runs-on: ubuntu-latest
50-
needs: build
51-
steps:
5231
- name: Deploy to GitHub Pages
53-
id: deployment
54-
uses: actions/deploy-pages@v4
32+
run: |
33+
git config --global user.name 'github-actions[bot]'
34+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
35+
yarn deploy
36+
env:
37+
GIT_USER: git
38+
DEPLOYMENT_BRANCH: gh-pages

0 commit comments

Comments
 (0)