Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed Oct 27, 2024
1 parent 7f7ddbe commit 5c52860
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release-lib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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]
working-directory: core
with:
file: 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

0 comments on commit 5c52860

Please sign in to comment.