Skip to content

added release workflow #1

added release workflow

added release workflow #1

Workflow file for this run

name: Tests Status
on:
push:
branches: [ master ]
tags:
- 'v*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
#- name: Check for warnings
# run: cargo clippy --all-targets --all-features -- -D warnings
- name: Doc tests
run: cargo test --doc
release:
name: Create Github Release + Publish to Marketplace
needs: test
if: startswith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Github Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.ref_name }}