Update workflow to publish correct artifact

This commit is contained in:
Neil Hanlon 2021-10-26 09:58:21 -04:00
parent a046d31a6c
commit f7f45a6cdb
Signed by: neil
GPG Key ID: 705BC21EC3C70F34
2 changed files with 7 additions and 4 deletions

View File

@ -23,10 +23,13 @@ jobs:
- name: Build images
run: make
- name: Get image name
run: echo "ARTIFACT_NAME=$(make publish)" >> $GITHUB_ENV
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: rocky-${{ matrix.architecture }}.tar.xz
path: ./*.tar.xz
name: ${{ env.ARTIFACT_NAME }}
path: out/${{ env.ARTIFACT_NAME }}
if-no-files-found: error

View File

@ -55,4 +55,4 @@ $(OUTNAME).tar.xz: $(TARGETIMAGE_META)
tar -Oxf out/$(TARGETIMAGEUUID).tar.xz */layer.tar | xz > out/$(OUTNAME).tar.xz
publish:
@echo out/$(OUTNAME).tar.xz
@echo $(OUTNAME).tar.xz