-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.34 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Publish crates on crates.io
on:
workflow_dispatch:
inputs:
skf-api-version:
description: "skf-api: major/minor/patch or semver or none if not updating derive crate"
required: false
default: "none"
skf-rs-version:
description: "skf-rs: major/minor/patch or semver or none if not updating derive crate"
required: false
default: "none"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set git credentials
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Publish crates
uses: kaleidawave/crates-release-gh-action@main
id: release
with:
version: |
{
"skf-api": "${{ github.event.inputs.skf-api-version }}",
"skf-rs": "${{ github.event.inputs.skf-rs-version }}"
}
crates-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Push updated Cargo.toml
run: |
echo '${{ steps.release.outputs.new-versions }}' | jq -r '.[]' | while read -r update; do
git tag "release/$update"
done
git add .
git commit -m "Release: ${{ steps.release.outputs.new-versions-description }}"
git push --tags origin main