Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady committed Nov 15, 2024
1 parent 20e90e0 commit bc50a22
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,11 @@ jobs:
run: |
BRANCH=$( git log -1 --format='%D' ${{ github.ref_name }} | grep -oP 'origin/\K.*' )
echo "BRANCH=$BRANCH" >> $GITHUB_OUTPUT
- name: print tag
run: echo ${{ steps.extract_branch.outputs.BRANCH }}

- name: extract version from tag
id: extract_version
run: |
VERSION=$( echo ${{ github.ref_name }} | grep -oP 'test-release-v\K.*' )
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: print branch
run: echo ${{ steps.extract_version.outputs.VERSION }}
run: echo ${{ steps.extract_branch.outputs.BRANCH }}

- name: switch to branch
run: git switch ${{ steps.extract_version.outputs.VERSION }}
run: git switch ${{ steps.extract_branch.outputs.BRANCH }}

- name: cargo login
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
Expand All @@ -50,6 +42,14 @@ jobs:
- name: install cargo-release
run: |
cargo binstall cargo-release --no-confirm
- name: extract version from tag
id: extract_version
run: |
VERSION=$( echo ${{ github.ref_name }} | grep -oP 'test-release-v\K.*' )
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: print version
run: echo ${{ steps.extract_version.outputs.VERSION }}

- name: cargo release
run: |
Expand Down

0 comments on commit bc50a22

Please sign in to comment.