Skip to content

Commit

Permalink
Only run install script on CI for non-releases (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Jul 3, 2021
1 parent 6272151 commit ba76319
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,12 @@ jobs:
sudo apt-get install ripgrep
./bin/forbid
- name: Prerelease Check
id: is_prerelease
run: cargo run --package prerelease -- --reference ${{ github.ref }}

- name: Test Install Script With Explicit Target
if: matrix.os != 'windows-2016'
if: matrix.os != 'windows-2016' && steps.is_prerelease.outputs.value
run: |
cd `mktemp -d`
cat $GITHUB_WORKSPACE/docs/install.sh | bash -s -- --target ${{ matrix.target }} --to .
Expand All @@ -133,7 +137,7 @@ jobs:
fi
- name: Test Install Script Without Explicit Target
if: matrix.os != 'windows-2016'
if: matrix.os != 'windows-2016' && steps.is_prerelease.outputs.value
run: |
cd `mktemp -d`
cat $GITHUB_WORKSPACE/docs/install.sh | bash -s -- --to .
Expand All @@ -145,10 +149,6 @@ jobs:
run: ./bin/package ${{github.ref}} ${{matrix.os}} ${{ matrix.target }}
shell: bash

- name: Prerelease Check
id: is_prerelease
run: cargo run --package prerelease -- --reference ${{ github.ref }}

- name: Publish
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit ba76319

Please sign in to comment.