File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 repository_dispatch :
66 types : [rebuild_site]
77
8+ env :
9+ PUBLIC_STRAPI_URL : ${{ vars.PUBLIC_STRAPI_URL }}
10+
811jobs :
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
You can’t perform that action at this time.
0 commit comments