-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d94535
commit 579406c
Showing
8 changed files
with
101 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Publish crates on crates.io | ||
name: Release crate | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -12,38 +12,40 @@ on: | |
required: false | ||
default: "none" | ||
|
||
concurrency: release-crate | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set git credentials | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: Publish crates | ||
uses: kaleidawave/crates-release-gh-action@main | ||
id: release | ||
with: | ||
version: | | ||
- uses: actions/checkout@v4 | ||
- name: Set git credentials | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: Crates publish | ||
uses: kaleidawave/crates-release-gh-action@main | ||
id: release | ||
with: | ||
version: | | ||
{ | ||
"derive-finite-automaton": "${{ github.event.inputs.version }}", | ||
"derive-finite-automaton-derive": "${{ github.event.inputs.derive-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 | ||
- 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 }} | ||
crates-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
- name: Push updated Cargo.toml | ||
run: | | ||
git add . | ||
git commit -m "Release: ${{ steps.release.outputs.new-versions-description }}" | ||
echo '${{ steps.release.outputs.new-versions }}' | jq -r '.[]' | while read -r update; do | ||
git tag "release/$update" | ||
done | ||
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
[workspace] | ||
members = ["derive-finite-automaton", "derive-finite-automaton-derive"] | ||
|
||
[workspace.lints.clippy] | ||
all = "deny" | ||
pedantic = "deny" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters