-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ops): make work with separate site repo
- Loading branch information
1 parent
5735aa6
commit 0191334
Showing
3 changed files
with
64 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: compile_all | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
repository_dispatch: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_webgui: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
|
||
- name: Enable Yarn Berry | ||
run: | | ||
corepack enable | ||
corepack prepare yarn@stable --activate | ||
- name: Compile all packages | ||
run: | | ||
yarn compile-all | ||
- name: Build site | ||
run: | | ||
yarn workspace webgui build --debug | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
name: webgui-dist | ||
path: packages/webgui/dist/ | ||
|
||
# Deployment job | ||
deploy_webgui: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
with: | ||
artifact_name: webgui-dist |
This file was deleted.
Oops, something went wrong.