Skip to content

Commit

Permalink
ci: only run repl release job when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Nov 23, 2023
1 parent 5855568 commit 5b9961e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ jobs:

dist_clarity_repl:
name: Build Clarity REPL Distribution
if: startsWith(github.ref, 'refs/heads/main') && needs.get_release_info.outputs.tag != ''
runs-on: ubuntu-latest
needs: pre_run
defaults:
Expand Down Expand Up @@ -495,9 +496,6 @@ jobs:
- name: Build - Cargo
run: cargo build --release --locked --target x86_64-unknown-linux-gnu

- name: Unit Tests - Cargo
run: cargo test --workspace --release --locked --exclude clarinet-sdk-wasm --exclude clarity-jupyter-kernel --target x86_64-unknown-linux-gnu

- name: Compress cargo artifact
working-directory: "."
run: tar -C target/x86_64-unknown-linux-gnu/release -zcvf clarity-repl-${{ env.SHORT_TARGET_NAME }}.tar.gz clarity-repl
Expand All @@ -509,7 +507,6 @@ jobs:
path: clarity-repl-${{ env.SHORT_TARGET_NAME }}.tar.gz

- name: Publish clarity-repl to crates.io
if: startsWith(github.ref, 'refs/heads/main') && needs.get_release_info.outputs.tag != ''
run: |
cargo login ${{ secrets.CARGO_CRATES_IO_API_KEY }}
cargo publish
Expand Down

0 comments on commit 5b9961e

Please sign in to comment.