Skip to content

Commit

Permalink
ci cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanawy committed Feb 27, 2024
1 parent b73dd59 commit eaf4c9a
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Continuous deployment
on:
workflow_run:
branches: [main]
workflows: [Continuous integration]
types: [completed]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown

- uses: jetli/[email protected]
- uses: jetli/[email protected]

- uses: actions/checkout@v2

- run: trunk build --release

- uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: $
publish_dir: ./dist
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Continuous integration
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: cargo test --all

format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: cargo fmt --all -- --check

clippy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: cargo clippy --all -- -D warnings

0 comments on commit eaf4c9a

Please sign in to comment.