Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme authored Oct 22, 2024
1 parent cabbd1b commit f3f8c2a
Showing 1 changed file with 6 additions and 47 deletions.
53 changes: 6 additions & 47 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,14 @@ jobs:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dartsdk-linux-x64-${{ github.ref_name }}

- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dartsdk-linux-ia32-${{ github.ref_name }}

- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dartsdk-linux-arm64-${{ github.ref_name }}

- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dartsdk-linux-arm-${{ github.ref_name }}

- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dartsdk-linux-riscv64-${{ github.ref_name }}
pattern: dartsdk-linux-*-${{ github.ref_name }}

- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: ${{ endsWith(github.ref_name, '.beta') || endsWith(github.ref_name, '.dev') }}
files: |
dartsdk-linux-x64-release.tar.gz
dartsdk-linux-ia32-release.tar.gz
dartsdk-linux-arm64-release.tar.gz
dartsdk-linux-arm-release.tar.gz
dartsdk-linux-riscv64-release.tar.gz
dartsdk-linux-*/dartsdk-linux-*-release.tar.gz
container:
needs: [release]
Expand All @@ -71,27 +47,10 @@ jobs:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dartsdk-linux-x64-${{ github.ref_name }}
pattern: dartsdk-linux-*-${{ github.ref_name }}

- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dartsdk-linux-ia32-${{ github.ref_name }}

- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dartsdk-linux-arm64-${{ github.ref_name }}

- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dartsdk-linux-arm-${{ github.ref_name }}

- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dartsdk-linux-riscv64-${{ github.ref_name }}
- name: Prepare
run: mv dartsdk-linux-*/dartsdk-linux-*-release.tar.gz .

- name: Docker Metadata
id: docker-metadata
Expand All @@ -109,7 +68,7 @@ jobs:
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/0.') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
run: docker run --privileged --rm registry.fedoraproject.org/fedora-minimal /bin/sh -c "microdnf install --assumeyes --nodocs --setopt=install_weak_deps=False qemu-user-static systemd-udev && mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc && /usr/lib/systemd/systemd-binfmt --unregister && /usr/lib/systemd/systemd-binfmt"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit f3f8c2a

Please sign in to comment.