Skip to content

Commit 09c84e9

Browse files
committed
Chore: Update workflows to use Makefile commands and upgrade action versions
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent 38f7413 commit 09c84e9

4 files changed

Lines changed: 9 additions & 15 deletions

File tree

.github/workflows/build-and-deploy-site.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030

3131
- name: Install and Build 🔧
3232
run: |
33-
npm install --legacy-peer-deps
34-
npm run build
33+
make setup
34+
make build
3535
3636
- name: Deploy 🚀
37-
uses: JamesIves/github-pages-deploy-action@4.0.0
37+
uses: JamesIves/github-pages-deploy-action@4.7.4
3838
with:
3939
branch: site # The branch the action should deploy to.
4040
folder: public # The folder the action should deploy.

.github/workflows/build-and-preview-site.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ jobs:
1616

1717
- name: Install and Build 🔧
1818
run: |
19-
npm install --legacy-peer-deps
20-
node -v
21-
npm run version
22-
npm run noIndex
19+
make setup
20+
make site-full
2321
2422
- name: Broken Link Check 🔗
2523
uses: technote-space/broken-link-checker-action@v2

.github/workflows/preview-site.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2.3.1
14+
uses: actions/checkout@v6
1515

1616
- name: Download Site dir
17-
uses: dawidd6/action-download-artifact@v2
17+
uses: dawidd6/action-download-artifact@v11
1818
with:
1919
github_token: ${{ secrets.GH_ACCESS_TOKEN }}
2020
workflow: build-and-preview-site.yml
@@ -29,7 +29,7 @@ jobs:
2929
3030
- name: Deploy to Netlify
3131
id: netlify
32-
uses: nwtgck/actions-netlify@v1.1
32+
uses: nwtgck/actions-netlify@v3
3333
with:
3434
publish-dir: 'public'
3535
production-deploy: false

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,10 @@
1414

1515
include .github/build/Makefile.show-help.mk
1616

17-
setup-libs:
18-
## "DEPRECATED: This target is deprecated. Use `make setup`.
19-
2017
## Install layer5.io dependencies your local machine.
2118
setup:
2219
npm install --legacy-peer-deps
2320

24-
2521
# "make site" - The default lightweight build keeps the dev server fast by skipping heavy collections.
2622
## Run a partial build of layer5.io on your local machine.
2723
site:
@@ -40,7 +36,7 @@ site-fast:
4036

4137
## Build layer5.io on your local machine.
4238
build:
43-
npm run build && npm run serve
39+
npm run build
4440

4541
## Empty build cache and run layer5.io on your local machine.
4642
clean:

0 commit comments

Comments
 (0)