Skip to content

Commit

Permalink
fix(CI/CD): Always create release
Browse files Browse the repository at this point in the history
  • Loading branch information
scipunch committed Jun 23, 2024
1 parent 95bae8f commit 946e567
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,14 @@ jobs:
skip_tests: true
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
- name: Configure Git
run: |
git config --global user.email "jdoe@example.com"
git config --global user.name "J. Doe"
git config --global user.email "idevtier@gmail.com"
git config --global user.name "suzumenobu"
- name: Install musl-tools on Linux
run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools
if: contains(matrix.platform.name, 'musl')
Expand Down Expand Up @@ -80,14 +78,9 @@ jobs:
tar czvf ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}
fi
cd -
if: |
matrix.toolchain == 'stable' &&
( startsWith( github.ref, 'refs/tags/v' ) ||
github.ref == 'refs/tags/test-release' )
- name: Publish GitHub release
uses: softprops/action-gh-release@v2
with:
draft: true
files: "swift-tool-box-*"
body_path: Changes.md
if: matrix.toolchain == 'stable' && startsWith( github.ref, 'refs/tags/v' )

0 comments on commit 946e567

Please sign in to comment.