ci: fix package json script #2
Workflow file for this run
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
name: Release | |
on: | |
push: | |
branches: | |
- feat/setup-semantic-release-PROOF-609 | |
jobs: | |
test-check-lint: | |
uses: ./.github/workflows/test-check-lint.yml | |
release: | |
name: Build Publish Library - Linux-x86_64 | |
runs-on: ubuntu-latest | |
needs: [test-check-lint] | |
environment: deploy #!! DO NOT CHANGE THIS LINE !! # | |
container: | |
image: spaceandtimelabs/blitzar:12.2.0-cuda-1.71.1-rust-0 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- run: git config --global --add safe.directory $(realpath .) | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
- name: Semantic relase | |
run: | | |
npm install semantic-release | |
npx semantic-release | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} # TODO: enable once blitzar is open source | |
- name: Test published crate | |
run: | | |
sleep 5 | |
sed -i 's,path = "../blitzar-sys/" # DO NOT CHANGE,version = "*" # DO NOT CHANGE,' rust/tests/Cargo.toml | |
cargo test --manifest-path rust/tests/Cargo.toml |