Skip to content

Commit

Permalink
ci: Add Release step
Browse files Browse the repository at this point in the history
Need to fetch tags manually:
actions/checkout#290
  • Loading branch information
YaLTeR committed Aug 20, 2021
1 parent 36a6f1a commit 056b0c5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
steps:
- uses: actions/checkout@v2

# We need the tags for the version string inside bxt-rs
- run: git fetch --force --tags

- name: Install dependencies
if: matrix.os == 'ubuntu-20.04'
run: |
Expand Down Expand Up @@ -103,6 +106,20 @@ jobs:
path: target/${{ matrix.target }}/${{ matrix.configuration }}/${{ matrix.filename }}
if-no-files-found: error

- name: Prepare Release
if: startsWith(github.ref, 'refs/tags/') && matrix.rust == 'stable' && matrix.configuration == 'release' && matrix.features != 'profiling'
run: |
cp target/${{ matrix.target }}/${{ matrix.configuration }}/${{ matrix.filename }} ${{ matrix.filename }}
7z a bxt-rs-${{ runner.os }}-${{ matrix.features }}.7z ${{ matrix.filename }} COPYING
- name: Release
if: startsWith(github.ref, 'refs/tags/') && matrix.rust == 'stable' && matrix.configuration == 'release' && matrix.features != 'profiling'
uses: softprops/action-gh-release@v1
with:
files: bxt-rs-${{ runner.os }}-${{ matrix.features }}.7z
draft: true
fail_on_unmatched_files: true

clippy:
strategy:
fail-fast: false
Expand Down

0 comments on commit 056b0c5

Please sign in to comment.