.github/workflows/release: work around git clean
The osbuild release action cleans the repository, removing the tarball that gets uploaded to the release. This tarball needs to be built before schutzbot commits the version bump, so move it so it doesn't get cleaned.
This commit is contained in:
parent
40da8c054e
commit
31eaea16ca
1 changed files with 5 additions and 4 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
|
@ -23,7 +23,10 @@ jobs:
|
|||
run: npm ci
|
||||
|
||||
- name: Make dist
|
||||
run: make dist
|
||||
run: |
|
||||
make dist
|
||||
RELEASE_NO=$(echo ${{github.ref_name}} | tr -d 'v')
|
||||
mv "cockpit-image-builder-$RELEASE_NO.tar.gz" ../cockpit-image-builder-${{github.ref_name}}.tar.gz
|
||||
|
||||
# create release, which will bump the version
|
||||
- name: Upstream release
|
||||
|
|
@ -37,7 +40,5 @@ jobs:
|
|||
# so the v needs to be in the tarball when we upload it as a release artefact.
|
||||
- name: Upload release artefact
|
||||
run: |
|
||||
RELEASE_NO=$(echo ${{github.ref_name}} | tr -d 'v')
|
||||
mv "cockpit-image-builder-$RELEASE_NO.tar.gz" cockpit-image-builder-${{github.ref_name}}.tar.gz
|
||||
gh release upload ${{github.ref_name}} \
|
||||
cockpit-image-builder-${{github.ref_name}}.tar.gz
|
||||
../cockpit-image-builder-${{github.ref_name}}.tar.gz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue