Skip to content

Commit

Permalink
build once
Browse files Browse the repository at this point in the history
  • Loading branch information
esimkowitz committed Nov 5, 2024
1 parent ecd9fa9 commit 5c1a35d
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/build-helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,27 @@ env:
NODE_VERSION: "20"
STATIC_DOCSITE_PATH: docsite
jobs:
build-docsite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
- name: Install Yarn
run: |
corepack enable
yarn install
- name: Build embedded docsite
run: yarn build-embedded
working-directory: docs/
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: docsite
path: docs/build
runbuild:
permissions:
contents: write
needs: build-docsite
outputs:
version: ${{ steps.set-version.outputs.WAVETERM_VERSION }}
strategy:
Expand Down Expand Up @@ -109,9 +127,10 @@ jobs:
smctl windows certsync
shell: cmd

- name: Build embedded docsite
run: yarn build-embedded -- . --output-path ../${{env.STATIC_DOCSITE_PATH}}
working-directory: docs/
- name: Download embedded docsite
uses: actions/download-artifact@v4
with:
name: docsite

# Build and upload packages
- name: Build (Linux)
Expand Down

0 comments on commit 5c1a35d

Please sign in to comment.