Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 12 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand All @@ -49,8 +49,8 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ github.ref_type == 'tag' }}
with:
name: icp-cli-network-launcher-${{ matrix.relname }}-${{ env.VER }}
path: dist/icp-cli-network-launcher-${{ matrix.relname }}-${{ env.VER }}.tar.gz
name: icp-cli-network-launcher-${{ matrix.relname }}-${{ github.ref_name }}
path: dist/icp-cli-network-launcher-${{ matrix.relname }}-${{ github.ref_name }}.tar.gz

aggregate:
name: build:required
Expand All @@ -66,23 +66,18 @@ jobs:
if: ${{ github.ref_type == 'tag' }}
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
relname: [x86_64-linux, arm64-linux, arm64-darwin, x86_64-darwin]
permissions:
contents: write
steps:
- name: Download build artifacts
- name: Download all build artifacts
uses: actions/download-artifact@v4
with:
name: icp-cli-network-launcher-${{ matrix.relname }}-${{ github.ref_name }}
- name: Upload tarball and sha256
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: icp-*.tar.*
file_glob: true
tag: ${{ github.ref_name }}
prerelease: true
make_latest: false
pattern: icp-cli-network-launcher-*-${{ github.ref_name }}
merge-multiple: true
- name: Create release and upload assets
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${{ github.ref_name }}" --repo "${{ github.repository }}" --prerelease icp-*.tar.*

docker-build:
name: "Build Docker image for ${{ matrix.platform }}"
Expand Down Expand Up @@ -142,8 +137,6 @@ jobs:

- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v3
with:
install: true

- name: "Build and push ${{ matrix.platform }} image"
id: build
Expand Down
Loading