mirror of https://github.com/marcosfad/mbp-ubuntu
Compress iso
This commit is contained in:
parent
96aeb15e8d
commit
9973e4e4e5
|
@ -74,11 +74,21 @@ jobs:
|
||||||
echo unzip cd.zip
|
echo unzip cd.zip
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
- name: Compress ISO
|
||||||
|
run: |
|
||||||
|
cd ${{ github.workspace }}
|
||||||
|
mkdir ISO
|
||||||
|
mv ${{ github.workspace }}/*.iso ${{ github.workspace }}/ISO
|
||||||
|
cd ISO
|
||||||
|
ISONAME=$(ls ${{ github.workspace }}/ISO | grep .iso | rev | cut -c 5- | rev)
|
||||||
|
tar -czvf ${ISONAME}.tar.gz ${{ github.workspace }}/ISO/${ISONAME}.iso
|
||||||
|
ls -l
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
if: github.ref == 'refs/heads/kinetic'
|
if: github.ref == 'refs/heads/kinetic'
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: ${{ github.workspace }}/*.iso
|
files: ${{ github.workspace }}/ISO/*.tar.gz
|
||||||
tag_name: v${{ env.isotag }}
|
tag_name: v${{ env.isotag }}
|
||||||
body_path: ${{ github.workspace }}/.github/workflows/instructions.txt
|
body_path: ${{ github.workspace }}/.github/workflows/instructions.txt
|
||||||
draft: false
|
draft: false
|
||||||
|
|
Loading…
Reference in New Issue