-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1.22 KB
/
crates.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: Release crate
on:
workflow_dispatch:
inputs:
version:
description: "major/minor/patch or semver"
required: false
default: "patch"
concurrency: release-crate
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set git credentials
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Crates publish
uses: kaleidawave/crates-release-gh-action@main
id: release
with:
version: ${{ github.event.inputs.version }}
crates-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Push updated Cargo.toml
run: |
git add .
git commit -m "Release: ${{ steps.release.outputs.new-versions-description }}"
git tag "release/${{ steps.release.outputs.new-version }}"
git push --tags origin main
- name: Discord
uses: dusmartijngames/discord-webhook-notify@master
with:
severity: info
text: "Released version ${{ steps.release.outputs.new-versions-description }}"
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_ENDPOINT }}