Skip to content

Commit

Permalink
update. Github Actions Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
blacknon committed Nov 10, 2024
1 parent 3296a4f commit fb182c1
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,31 @@ jobs:
matrix:
include:
- target: x86_64-unknown-linux-gnu
artifact: build-x86_64-unknown-linux-gnu
os: ubuntu-latest
ext: tar.gz
- target: x86_64-unknown-linux-musl
artifact: build-x86_64-unknown-linux-gnu-targz
os: ubuntu-latest
ext: tar.gz
- target: x86_64-unknown-linux-musl
artifact: build-x86_64-unknown-linux-musl-rpm
os: ubuntu-latest
ext: rpm
- target: x86_64-unknown-linux-musl
artifact: build-x86_64-unknown-linux-musl-deb
os: ubuntu-latest
ext: deb
- target: x86_64-apple-darwin
artifact: build-x86_64-apple-darwin
os: macos-latest
ext: tar.gz
- target: aarch64-apple-darwin
artifact: build-aarch64-apple-darwin
os: macos-latest
ext: tar.gz
- target: x86_64-pc-windows-gnu
artifact: build-x86_64-pc-windows-gnu
os: ubuntu-latest
ext: zip
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -140,7 +147,7 @@ jobs:
if: matrix.ext == 'rpm'
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.target }}-rpm
name: ${{ matrix.artifact }}
path: hwatch-${{ steps.package_version.outputs.version }}.${{ matrix.target }}.rpm

- name: README for deb
Expand All @@ -152,21 +159,21 @@ jobs:
if: matrix.ext == 'deb'
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.target }}-deb
name: ${{ matrix.artifact }}
path: hwatch-${{ steps.package_version.outputs.version }}.${{ matrix.target }}.deb

- name: Upload artifact
if: matrix.ext == 'tar.gz'
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.target }}-targz
name: ${{ matrix.artifact }}
path: hwatch-${{ steps.package_version.outputs.version }}.${{ matrix.target }}.tar.gz

- name: Upload artifact
if: matrix.ext == 'zip'
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.target }}-zip
name: ${{ matrix.artifact }}
path: hwatch-${{ steps.package_version.outputs.version }}.${{ matrix.target }}.zip

# create package release
Expand Down Expand Up @@ -210,24 +217,31 @@ jobs:
matrix:
include:
- target: x86_64-unknown-linux-gnu-targz
artifact: build-x86_64-unknown-linux-gnu
os: ubuntu-latest
ext: tar.gz
- target: x86_64-unknown-linux-musl-targz
artifact: build-x86_64-unknown-linux-gnu-targz
os: ubuntu-latest
ext: tar.gz
- target: x86_64-unknown-linux-musl-rpm
- target: x86_64-unknown-linux-musl
artifact: build-x86_64-unknown-linux-musl-rpm
os: ubuntu-latest
ext: rpm
- target: x86_64-unknown-linux-musl-deb
- target: x86_64-unknown-linux-musl
artifact: build-x86_64-unknown-linux-musl-deb
os: ubuntu-latest
ext: deb
- target: x86_64-apple-darwin-targz
- target: x86_64-apple-darwin
artifact: build-x86_64-apple-darwin
os: macos-latest
ext: tar.gz
- target: aarch64-apple-darwin-targz
- target: aarch64-apple-darwin
artifact: build-aarch64-apple-darwin
os: macos-latest
ext: tar.gz
- target: x86_64-pc-windows-gnu-zip
- target: x86_64-pc-windows-gnu
artifact: build-x86_64-pc-windows-gnu
os: ubuntu-latest
ext: zip
needs: [create-release]
Expand All @@ -243,11 +257,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: build-${{ matrix.target }}

# debug
- run: |
ls -la
name: ${{ matrix.artifact }}

- uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit fb182c1

Please sign in to comment.