Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Aug 28, 2024
1 parent 10a9740 commit d8bfba1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ jobs:
run: |
#!/bin/bash
sudo apt install genisoimage libarchive-tools
iso=$(echo "${{ env.latest_tag }}" | cut -f1 -d"-")
iso="virtio-win-$iso.iso"
url="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${{ env.latest_tag }}/$iso"
base=$(echo "${{ env.latest_tag }}" | cut -f1 -d"-")
echo "latest_base=$base" >> $GITHUB_ENV
url="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${{ env.latest_tag }}/virtio-win-$base.iso"
wget "$url" -O "/tmp/latest.iso" -q
rm -rf /tmp/iso && mkdir /tmp/iso
bsdtar -xf "/tmp/latest.iso" -C /tmp/iso/
Expand Down Expand Up @@ -143,11 +143,11 @@ jobs:
run: |
#!/bin/bash
cd /tmp/iso
tar -C /tmp/iso -cvzf /tmp/virtio-win-${{ env.latest_tag }}.tar.gz * >/dev/null
tar -C /tmp/iso -cvzf /tmp/virtio-win-${{ env.latest_base }}.tar.gz * >/dev/null
echo & echo
XZ_OPT=-9 tar -C /tmp/iso -Jcvf /tmp/virtio-win-${{ env.latest_tag }}.tar.xz * >/dev/null
XZ_OPT=-9 tar -C /tmp/iso -Jcvf /tmp/virtio-win-${{ env.latest_base }}.tar.xz * >/dev/null
echo & echo
genisoimage -o /tmp/virtio-win-${{ env.latest_tag }}.iso -r -iso-level 4 -input-charset iso8859-1 -V "virtio-win-${{ env.latest_tag }}" /tmp/iso
genisoimage -o /tmp/virtio-win-${{ env.latest_base }}.iso -r -iso-level 4 -input-charset iso8859-1 -V "virtio-win-${{ env.latest_base }}" /tmp/iso
-
name: Checkout
if: env.exists == 'false'
Expand All @@ -160,14 +160,14 @@ jobs:
uses: action-pack/github-release@v2
with:
tag: "v${{ env.latest_tag }}"
title: "v${{ env.latest_tag }}"
title: "v${{ env.latest_base }}"
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Update release
if: env.exists == 'false'
uses: AButler/[email protected]
with:
files: '/tmp/virtio-win-${{ env.latest_tag }}.*'
files: '/tmp/virtio-win-${{ env.latest_base }}.*'
release-tag: "v${{ env.latest_tag }}"
repo-token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
Expand Down

0 comments on commit d8bfba1

Please sign in to comment.