Skip to content

Commit 3488bbf

Browse files
committed
Revert workflow to last known working state
1 parent 52e63d8 commit 3488bbf

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

.github/workflows/github-pages.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,34 @@ on:
44
push:
55
branches:
66
- master
7+
pull_requests:
78

89
jobs:
9-
build-and-deploy:
10+
deploy:
1011
runs-on: ubuntu-20.04
1112
permissions:
1213
contents: write
1314
concurrency:
1415
group: ${{ github.workflow }}-${{ github.ref }}
1516
steps:
16-
- name: Checkout 🛎️
17-
uses: actions/checkout@v3
17+
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
1820

19-
- name: Install Node ⚛️
21+
- name: Install Node
2022
uses: actions/setup-node@v3
2123
with:
22-
node-version: '14'
24+
node-version: '14.x'
25+
26+
- name: Install Packages
27+
run: npm ci
2328

24-
- name: Install Packages and Build 🔧
25-
run: |
26-
npm ci
29+
- name: Build
30+
run: npm run build
2731

28-
- name: Deploy 🚀
29-
run: |
30-
git config user.email "${{ secrets.GIT_CONFIG_EMAIL }}"
31-
git config user.name "${{ secrets.GIT_CONFIG_NAME }}"
32-
npm run deploy
32+
- name: Deploy
33+
uses: peaceiris/actions-gh-pages@v3
34+
if: ${{ github.ref == 'refs/heads/master' }}
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./

0 commit comments

Comments
 (0)