Skip to content

Commit 2c65926

Browse files
authored
4th try (#81)
1 parent 8d94316 commit 2c65926

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.github/workflows/static.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
24-
deploy:
25-
environment:
26-
name: github-pages
27-
url: ${{ steps.deployment.outputs.page_url }}
24+
# Build job
25+
build:
2826
runs-on: ubuntu-latest
2927
steps:
3028
- name: Checkout
3129
uses: actions/checkout@v3
32-
3330
- name: Set up Node.js
3431
uses: actions/setup-node@v3
3532
with:
@@ -40,14 +37,21 @@ jobs:
4037
run: yarn install --frozen-lockfile --non-interactive
4138
- name: Build
4239
run: yarn run build
43-
4440
- name: Setup Pages
45-
uses: actions/configure-pages@v1
41+
uses: actions/configure-pages@v3
4642
- name: Upload artifact
47-
uses: actions/upload-artifact@v4
43+
uses: actions/upload-pages-artifact@v2
4844
with:
49-
name: github-pages
50-
path: build
45+
path: ./build
46+
47+
# Deployment job
48+
deploy:
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
runs-on: ubuntu-latest
53+
needs: build
54+
steps:
5155
- name: Deploy to GitHub Pages
5256
id: deployment
53-
uses: actions/deploy-pages@v1
57+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)