Skip to content

Commit

Permalink
Merge pull request #12 from Rovel/add-artifacts
Browse files Browse the repository at this point in the history
change upload an download artifact strategy
  • Loading branch information
Rovel authored Feb 20, 2024
2 parents b12ca91 + 6613704 commit 39b5f93
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,21 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
name: image_cleaner-${{ matrix.target }}
path: target/${{ matrix.target }}/release/

release:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, 'Merge') }}
name: Release
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
- target: armv7-unknown-linux-gnueabihf
- target: aarch64-unknown-linux-gnu
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
path: target
pattern: image_cleaner-*
merge-multiple: true
- name: Display structure of downloaded files
run: ls -R
- name: Bump version and push tag
Expand Down

0 comments on commit 39b5f93

Please sign in to comment.