Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ecanuto committed May 14, 2024
1 parent fb8dc96 commit 462c52f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# these are overwritten by "settings.sh"
SOURCE_IMGFILE: ""
TARGET_IMGFILE: ""
DEBIAN_FILEURL: ""
GIT_CACHE_NAME: ""
GITHUB_RELEASE: ""
SOURCE_IMGFILE: ""
TARGET_IMGFILE: ""

jobs:
release:
Expand Down Expand Up @@ -56,12 +57,11 @@ jobs:
path: ${{ env.SOURCE_IMGFILE }}

- name: Download base image
run: wget "$DEBIAN_FILEURL"
run: wget "${{ env.DEBIAN_FILEURL }}"
if: steps.cache.outputs.cache-hit != 'true'

- name: Upload original image artifact
run: gh release upload "${{ env.GITHUB_RELEASE }}" *.qcow2 --clobber
# run: gh release upload "${{ env.GITHUB_RELEASE }}" ${{ env.SOURCE_IMGFILE }} --clobber
run: gh release upload "${{ env.GITHUB_RELEASE }}" ${{ env.SOURCE_IMGFILE }} --clobber

customize:
name: Customize image
Expand Down
1 change: 0 additions & 1 deletion settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ cat >> "$GITHUB_ENV" <<-EOF
GITHUB_RELEASE=$GITHUB_RELEASE
SOURCE_IMGFILE=$SOURCE_IMGFILE
TARGET_IMGFILE=$TARGET_IMGFILE
IMAGE_PACKAGES=$IMAGE_PACKAGES
EOF
fi

0 comments on commit 462c52f

Please sign in to comment.