diff options
| author | Brendan F <EpicWolverine@users.noreply.github.com> | 2025-01-09 00:43:41 -0500 |
|---|---|---|
| committer | Brendan F <EpicWolverine@users.noreply.github.com> | 2025-01-09 00:43:41 -0500 |
| commit | bdea9cdd40d5eaf3f4167df8683ebb91f4b31f7f (patch) | |
| tree | 203fdbba9410ef868882028dde55e650804bbcfa /.github/workflows | |
| parent | 0d703c037ee7d0015f07145da3c87e730c5aa4a6 (diff) | |
Move build to composite action
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build_website.yml | 14 | ||||
| -rw-r--r-- | .github/workflows/deploy_website.yml | 15 |
2 files changed, 2 insertions, 27 deletions
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: |
