Skip to content

Redo: Release v3.0.1 #9

Redo: Release v3.0.1

Redo: Release v3.0.1 #9

Workflow file for this run

#
# Copyright (c) 2023 Siddharth Chandrasekaran <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
#
name: Publish Crate
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'libosdp-sys-v*'
- 'libosdp-v*'
- 'osdpctl-v*'
jobs:
publish:
name: Publish Crate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: cargo publish --token ${CRATES_TOKEN} -p $(echo '${{ github.ref_name }}' | perl -pe 's/.+?([a-z\-]+)-v.*/\1/')
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}