Skip to content

Commit f64b5bc

Browse files
chore: rebuild workflow
1 parent cf831a0 commit f64b5bc

1 file changed

Lines changed: 15 additions & 19 deletions

File tree

.github/workflows/rebuild.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,30 @@ on:
55
repository_dispatch:
66
types: [rebuild_site]
77

8+
env:
9+
PUBLIC_STRAPI_URL: ${{ vars.PUBLIC_STRAPI_URL }}
10+
811
jobs:
9-
build:
12+
build-and-deploy:
1013
runs-on: ubuntu-latest
14+
concurrency: ci-${{ github.ref }}
1115

1216
steps:
13-
- uses: actions/checkout@v4
17+
- name: Checkout 🛎️
18+
uses: actions/checkout@v4
1419

1520
- name: Setup Node
1621
uses: actions/setup-node@v4
1722
with:
1823
node-version: 20
1924

20-
- name: Install deps
21-
run: yarn install
22-
23-
- name: Build
24-
run: yarn build
25+
- name: Install and Build 🔧
26+
run: |
27+
yarn install
28+
yarn build
2529
26-
- name: Upload artifact
27-
uses: actions/upload-pages-artifact@v3
30+
- name: Deploy 🚀
31+
uses: JamesIves/github-pages-deploy-action@v4.2.5
2832
with:
29-
path: dist
30-
31-
deploy:
32-
needs: build
33-
runs-on: ubuntu-latest
34-
permissions:
35-
pages: write
36-
id-token: write
37-
steps:
38-
- uses: actions/deploy-pages@v4
33+
branch: gh-pages
34+
folder: dist

0 commit comments

Comments
 (0)