Skip to content

Commit

Permalink
ci: remove branch detection from release workflow
Browse files Browse the repository at this point in the history
This workflow will run only based on a tag now.
  • Loading branch information
auyer committed Jun 9, 2024
1 parent 4dd2b69 commit 9fda354
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
tags:
- v*
branches:
- release/**

jobs:
release:
Expand All @@ -15,19 +13,11 @@ jobs:
- uses: actions/checkout@master

- name: SET CURRENT_VERSION tag
if: startsWith(github.ref, 'refs/tags/v')
run: |
branchName=$(echo $GITHUB_REF | sed 's/refs\/tags\///' )
# variable CURRENT_VERSION should not have the "v" used in the branch name
echo "CURRENT_VERSION=$(echo $branchName | sed 's/v//' )" >> $GITHUB_ENV
- name: SET CURRENT_VERSION branch
if: startsWith(github.ref, 'refs/heads/')
run: |
branchName=$(echo $GITHUB_REF | sed 's/refs\/heads\/release\///')
# variable CURRENT_VERSION should not have the "v" used in the tag
echo "CURRENT_VERSION=$(echo $branchName | sed 's/v//' )" >> $GITHUB_ENV
- name: Update local toolchain
run: |
rustup update
Expand Down

0 comments on commit 9fda354

Please sign in to comment.