v0.3.1 #40
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: | |
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' | |
release-artifact: | |
needs: tag | |
runs-on: ubuntu-20.04 | |
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Quick Setup | |
uses: ./.github/workflows/quick-setup | |
- name: Build artifact | |
run: cargo build --release -p mdbook-aquascope -p aquascope_front | |
- 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/maquascope-x86_64-unknown-linux-gnu.tar.gz |