Skip to content

Commit

Permalink
updates CI to only create a nightly release on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ArquintL authored Nov 15, 2024
1 parent 464c67e commit f594bb7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ jobs:

create-release:
# this job creates a nightly release or stable draft-release and adds viper-ide.vsix and Viper Tools as release assets
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' }}
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' && github.ref == 'refs/heads/master' }}
needs: build-and-test
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -289,9 +289,6 @@ jobs:
shell: bash
run: echo "TAG_NAME=$(date +v-%Y-%m-%d-%H%M)" >> $GITHUB_ENV

- name: Abort test
run: exit 1

# use the following action if nightly releases should eventually be deleted
# - name: Create nightly release
# if: ${{ github.event.inputs.type != 'stable' && github.event.inputs.type != 'rc' }}
Expand Down

0 comments on commit f594bb7

Please sign in to comment.