Skip to content

v0.4.3-alpha8

v0.4.3-alpha8 #8

Workflow file for this run

# (c) Copyright 2023 Hewlett Packard Enterprise Development LP
name: Release
on:
release:
types: [created]
jobs:
upload_artifacts:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Update Tag
shell: bash
run: |
version=$(echo "$GITHUB_REF" | sed 's/refs\/tags\/v//')
sed -i "s/version = \"0.1.0\"/version = \"$version\"/" Cargo.toml
- name: Cargo Login
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish
run: cargo publish --allow-dirty --locked