chore(release): ignore releases of nosapi_server
crate
#18
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 libraries | |
on: | |
push: | |
branches: [main] | |
permissions: | |
pull-requests: write | |
contents: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
outputs: | |
change: ${{ steps.covector.outputs.change }} | |
commandRan: ${{ steps.covector.outputs.commandRan }} | |
successfulPublish: ${{ steps.covector.outputs.successfulPublish }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup git config | |
run: | | |
git config --global user.name "${{ github.event.pusher.name }}" | |
git config --global user.email "${{ github.event.pusher.email }}" | |
- name: Run covector version or publish | |
uses: jbolda/covector/packages/action@covector-v0.10 | |
id: covector | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
command: 'version-or-publish' | |
createRelease: true | |
- name: Create Pull Request with versions bumped | |
id: cpr | |
uses: peter-evans/create-pull-request@v3 | |
if: steps.covector.outputs.commandRan == 'version' | |
with: | |
title: "chore: release" | |
commit-message: "chore: release" | |
branch: "release" | |
body: ${{ steps.covector.outputs.change }} |