Skip to content

Commit

Permalink
Merge pull request #7 from cosmonic-labs/chore/handle-ui-build-in-ci
Browse files Browse the repository at this point in the history
chore(cloud-hello): Handle UI build in CI
  • Loading branch information
joonas authored Jun 20, 2024
2 parents a9b3df1 + f17ff37 commit d714429
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 84 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/cloud-hello.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the embedded UI
run: |
npm install
npm run build
working-directory: cloud-hello/ui
- run: cargo clippy --no-deps
working-directory: cloud-hello

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the embedded UI
run: |
npm install
npm run build
working-directory: cloud-hello/ui
- run: |
rustup target add wasm32-wasi
cargo build --target wasm32-wasi
working-directory: cloud-hello
release:
runs-on: ubuntu-latest
needs: [build]
needs:
- build
if: startsWith(github.ref, 'refs/tags/cloud-hello-v')
permissions:
contents: read
Expand All @@ -53,7 +65,13 @@ jobs:
- run: rustup target add wasm32-wasi
- uses: taiki-e/install-action@v2
with:
tool: wash-cli@0.27
tool: wash-cli@0.29.2

- name: Build the embedded UI
run: |
npm install
npm run build
working-directory: cloud-hello/ui

- name: Build and push
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/dist/
/target
**target
cloud-hello/ui/dist/

## File system
.DS_Store
Expand Down
1 change: 0 additions & 1 deletion cloud-hello/ui/dist/assets/index-BrwVprff.css

This file was deleted.

26 changes: 0 additions & 26 deletions cloud-hello/ui/dist/assets/index-CbmWcr-v.js

This file was deleted.

Loading

0 comments on commit d714429

Please sign in to comment.