-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 921 Bytes
/
publish.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
on:
push:
tags:
- v*
name: Publish to crates.io
permissions:
contents: write
jobs:
check:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Hack publish-crates to not fail on paths
run: |
sed 's/, path = ".*"//' -i Cargo.toml
- uses: katyo/publish-crates@v2
with:
path: ./redis-macros-derive
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
ignore-unpublished-changes: true
- uses: katyo/publish-crates@v2
with:
path: ./
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
args: --allow-dirty
- uses: taiki-e/create-gh-release-action@v1
with:
changelog: Changelog.md
token: ${{ secrets.GITHUB_TOKEN }}