Skip to content

windows-ctl: 0.1.2-rc.4 #4

windows-ctl: 0.1.2-rc.4

windows-ctl: 0.1.2-rc.4 #4

Workflow file for this run

on:
push:
tags:
- 'windows-ctl-v*'
- 'ctltool-v*'
name: release
jobs:
create-release:
name: create GitHub release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: ${{ contains(github.ref, 'pre') || contains(github.ref, 'rc') }}
publish:
needs:
- create-release
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v3
- name: publish to crates.io
env:
CARGO_REGISTRY_TOKEN: "${{ secrets.CRATES_IO_TOKEN }}"
run: |
tag="${GITHUB_REF#refs/tags/}"
package_being_published="${tag%-v*}"
cd "${package_being_published}" && cargo publish