-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (39 loc) · 1.13 KB
/
release-lib.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
42
43
44
45
name: Release CodeSnap to crates.io
on:
push
# branches:
# - main
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Read version from core project
id: read_toml
uses: SebRollen/[email protected]
with:
file: core/Cargo.toml
field: package.version
- name: Foo
run: "echo ${{ steps.read_toml.outputs.value }}"
# - uses: actions-rs/cargo@v1
# working-directory: core
# with:
# command: publish
#
# - name: Bump version and push tag
# id: tag_version
# uses: mathieudutour/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# custom_tag: v${{ steps.read_toml.outputs.value }}
#
# - name: Create a GitHub release
# uses: ncipollo/release-action@v1
# with:
# tag: ${{ steps.tag_version.outputs.new_tag }}
# name: Release ${{ steps.tag_version.outputs.new_tag }}
# generateReleaseNotes: true