aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorBrendan F <EpicWolverine@users.noreply.github.com>2025-01-09 00:43:41 -0500
committerBrendan F <EpicWolverine@users.noreply.github.com>2025-01-09 00:43:41 -0500
commitbdea9cdd40d5eaf3f4167df8683ebb91f4b31f7f (patch)
tree203fdbba9410ef868882028dde55e650804bbcfa /.github
parent0d703c037ee7d0015f07145da3c87e730c5aa4a6 (diff)
Move build to composite action
Diffstat (limited to '.github')
-rw-r--r--.github/actions/build.yml18
-rw-r--r--.github/workflows/build_website.yml14
-rw-r--r--.github/workflows/deploy_website.yml15
3 files changed, 20 insertions, 27 deletions
diff --git a/.github/actions/build.yml b/.github/actions/build.yml
new file mode 100644
index 0000000..d95d14d
--- /dev/null
+++ b/.github/actions/build.yml
@@ -0,0 +1,18 @@
+name: Build Website
+runs:
+ using: "composite"
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20.x
+ cache: 'yarn'
+ - name: Run install
+ uses: borales/actions-yarn@v5
+ with:
+ cmd: install # will run `yarn install` command
+ - name: Build production bundle
+ uses: borales/actions-yarn@v5
+ with:
+ cmd: build
diff --git a/.github/workflows/build_website.yml b/.github/workflows/build_website.yml
index 00f6d2d..82e3b25 100644
--- a/.github/workflows/build_website.yml
+++ b/.github/workflows/build_website.yml
@@ -9,16 +9,4 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - name: Set Node.js
- uses: actions/setup-node@v4
- with:
- node-version: 20.x
- - name: Run install
- uses: borales/actions-yarn@v5
- with:
- cmd: install # will run `yarn install` command
- - name: Build production bundle
- uses: borales/actions-yarn@v5
- with:
- cmd: build
+ - uses: ./.github/actions/build.yml
diff --git a/.github/workflows/deploy_website.yml b/.github/workflows/deploy_website.yml
index b0bb438..3d8b790 100644
--- a/.github/workflows/deploy_website.yml
+++ b/.github/workflows/deploy_website.yml
@@ -29,20 +29,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Set Node.js
- uses: actions/setup-node@v4
- with:
- node-version: 20.x
- - name: Run install
- uses: borales/actions-yarn@v5
- with:
- cmd: install # will run `yarn install` command
- - name: Build production bundle
- uses: borales/actions-yarn@v5
- with:
- cmd: build
+ - uses: ./.github/actions/build.yml
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage