Skip to content

chore: release alpha #92

chore: release alpha

chore: release alpha #92

on:
push:
branches:
- alpha
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Test
run: |
cargo fmt --all --check
cargo check --locked --all-targets --all-features
cargo clippy --locked --all-targets --all-features -- --deny warnings
cargo test -p hooks-core
bash scripts/test-hooks.sh
cargo test -p hooks-test
cargo test
cargo test --all-features
- uses: googleapis/release-please-action@v4
id: release
with:
target-branch: alpha
- name: Publish
run: |
for dir_path in $PATHS_RELEASED
do
if [[ $dir_path -ef packages/hooks-test ]]; then
continue
fi
echo "publish $dir_path/Cargo.toml"
cargo publish --manifest-path "$dir_path/Cargo.toml"
done
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
PATHS_RELEASED: ${{ join(fromJSON(steps.release.outputs.paths_released || '[]'), ' ') }}
if: ${{ steps.release.outputs.releases_created }}