Skip to content

v0.3.5

v0.3.5 #60

Workflow file for this run

name: release
on:
pull_request:
branches: [main]
types: [labeled,closed]
jobs:
tag:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
steps:
- uses: actions/checkout@v3
- uses: christophebedard/tag-version-commit@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
version_regex: 'v([0-9]+\.[0-9]+\.[0-9]+)'
version_tag_prefix: 'v'
publish-crates:
needs: tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- name: Install aquascope and mdbook-aquascope
run: nix develop --command ci-install
- name: Publish Crates
run: nix develop --command ci-publish-crates ${{ secrets.CRATES_IO_TOKEN }}
release-artifact:
needs: publish-crates
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- name: Install aquascope and mdbook-aquascope
run: nix develop --command ci-install
- name: Package artifact
run: tar -czf aquascope-x86_64-unknown-linux-gnu.tar.gz mdbook-aquascope cargo-aquascope aquascope-driver
working-directory: target/release
- name: Release artifact
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.pull_request.title }}
files: |
target/release/aquascope-x86_64-unknown-linux-gnu.tar.gz