Skip to content

Commit

Permalink
Merge pull request #10 from Darneas/release-on-tag
Browse files Browse the repository at this point in the history
Use SOURCE_TAG from previous step
  • Loading branch information
FrankSchnicke authored Nov 29, 2021
2 parents 70c56f3 + eb8bdf9 commit fe0d106
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
tags:
- '*'
pull_request:

name: Release on crates.io

Expand Down Expand Up @@ -34,11 +33,7 @@ jobs:
- name: Publish to crates.io
run: |
cargo install cargo-workspaces
cargo workspaces publish --from-git --token ${{ secrets.CRATES_IO_TOKEN }} custom `echo "${{ SOURCE_TAG }}" | cut -c2-`
env:
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
cargo workspaces publish --from-git --token ${{ secrets.CRATES_IO_TOKEN }} custom `echo "${{ steps.branch_name.outputs.SOURCE_TAG }}" | cut -c2-`
- name: Create a GitHub release
uses: actions/create-release@v1
Expand Down

0 comments on commit fe0d106

Please sign in to comment.