Skip to content

Commit

Permalink
fix(infra): env variables (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx authored Jan 26, 2022
1 parent 41ca49e commit d1edc1e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,18 @@ jobs:
- name: Publish to crates.io and tag the commit responsible
id: version-tag-and-publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo ws publish --all --yes --exact \
--skip-published --no-git-commit --allow-dirty \
--tag-existing --tag-prefix 'v' \
--tag-msg 'crates.io snapshot' --tag-msg $'%{\n - %n: https://crates.io/crates/%n/%v}' \
--no-individual-tags --no-git-push
echo "GIT_LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
echo "Latest git tag is ${{ env.GIT_LATEST_TAG }}"
echo "::set-output name=git_tag_message::$(git tag -l --format='%(body)' ${{ env.GIT_LATEST_TAG }})"
export GIT_LATEST_TAG=$(git describe --tags --abbrev=0)
echo "GIT_LATEST_TAG=${GIT_LATEST_TAG}" >> $GITHUB_ENV
echo "Latest git tag is ${GIT_LATEST_TAG}"
echo "::set-output name=git_tag_message::$(git tag -l --format='%(body)' ${GIT_LATEST_TAG})"
- name: Push tags to GitHub (if any)
run: git push --tags
Expand Down

0 comments on commit d1edc1e

Please sign in to comment.