Skip to content

Commit

Permalink
[ci] Always upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Oct 2, 2024
1 parent 00b84cb commit 6490237
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
run: ninja -C build test

- name: Install
if: github.ref_type == 'tag'
shell: bash
run: |
ninja -C build install
Expand All @@ -48,26 +47,24 @@ jobs:
mv -v dist/bin ots-$VERSION-${{ runner.os }}
- name: Archive
if: github.ref_type == 'tag'
uses: thedoctor0/zip-release@master
with:
path: ots-${{ env.ots_version }}-${{ runner.os }}
filename: ots-${{ env.ots_version }}-${{ runner.os }}.zip

- name: Upload
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v4
with:
name: ots-${{ env.ots_version }}-${{ runner.os }}
path: ots-*.zip
if-no-files-found: error

- name: Make Dist Tarball
if: github.ref_type == 'tag' && matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest'
run: meson dist -C build --no-tests

- name: Upload Dist Tarball
if: github.ref_type == 'tag' && matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: ots-${{ env.ots_version }}
Expand Down

0 comments on commit 6490237

Please sign in to comment.