Skip to content

Commit

Permalink
ci/cd: Attempting automatic release
Browse files Browse the repository at this point in the history
  • Loading branch information
realkarmakun committed Jul 14, 2024
1 parent 197dcb7 commit 352c0c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@ jobs:

- name: Upload ${{ matrix.target }} pterocli artifact
uses: actions/upload-artifact@v4
if: matrix.os != 'windows-latest'
with:
name: pterocli-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/pterocli.exe
target/${{ matrix.target }}/release/pterocli
path: target/${{ matrix.target }}/release/pterocli

- name: Upload ${{ matrix.target }} pterocli artifact
uses: actions/upload-artifact@v4
if: matrix.os == 'windows-latest'
with:
name: pterocli-${{ matrix.target }}.exe
path: target/${{ matrix.target }}/release/pterocli.exe

4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ jobs:
steps:
- name: Download artifacts for release
uses: actions/download-artifact@v4
with:
path: target/*/release/

- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
files: |
target/*/release/*
pterocli*

0 comments on commit 352c0c8

Please sign in to comment.