Skip to content

Commit

Permalink
fix: release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanti committed Jun 11, 2024
1 parent 82553d1 commit 4c0344c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 21 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Continuous Delivery

permissions:
pull-requests: write
contents: write

on:
push:
branches:
Expand All @@ -8,7 +12,28 @@ env:
CARGO_TERM_COLOR: always

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-wasi

- name: Run Release PR
uses: MarcoIeni/[email protected]
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build:
needs: release
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
Expand All @@ -26,6 +51,9 @@ jobs:
target: wasm32-wasi
components: rustfmt, clippy

- name: Cache dependencies
uses: Swatinem/[email protected]

- name: Release build
run: cargo build --release

Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,3 @@ jobs:
- name: Run Clippy
run: cargo clippy --all-targets --all-features

release:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-wasi
components: rustfmt, clippy

- name: Run Release PR
uses: MarcoIeni/[email protected]
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4c0344c

Please sign in to comment.