Skip to content

iso_build

iso_build #43

name: iso_build
on:
workflow_dispatch:
jobs:
prepare-release:
runs-on: ubuntu-20.04
steps:
- uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- id: time
uses: nanzm/get-time-action@v1.1
with:
format: 'YYYYMMDDHHmm'
outputs:
release_tag: ${{ steps.time.outputs.time }}
release:
runs-on: ubuntu-20.04
needs: prepare-release
strategy:
matrix:
##### EDIT ME #####
EDITION: [cinnamon,i3]
BRANCH: [stable]
SCOPE: [minimal,full]
OFFICE: [true]
###################
steps:
- uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- id: image-build
uses: manjaro/manjaro-iso-action@main
with:
edition: ${{ matrix.edition }}
branch: ${{ matrix.branch }}
scope: ${{ matrix.scope }}
version: "23.1.4"
kernel: linux66
code-name: "Vulcan"
build-mirror: ${{ secrets.BUILD_MIRROR }}
release-tag: ${{ needs.prepare-release.outputs.release_tag }}
office-chooser: ${{ matrix.office }}
gpg-secret-key-base64: ${{ secrets.CI_PRIV_KEY }}
gpg-passphrase: ${{ secrets.CI_GPG_PASSPHRASE }}
# s3-cfg: ${{ secrets.S3_CFG }}
- name: rollback
if: ${{ failure() || cancelled() }}
run: |
echo ${{ github.token }} | gh auth login --with-token
gh release delete ${{ needs.prepare-release.outputs.release_tag }} -y --repo ${{ github.repository }}
git push --delete origin ${{ needs.prepare-release.outputs.release_tag }}
- name: rollback cdn77 upload
if: ${{ failure() || cancelled() }}
run: |
sshpass -p "${{ secrets.CDN_PWD }}" rsync --delete -vaP --stats \
-e ssh $(mktemp) ${{ secrets.CDN_USER }}@${{ secrets.CDN_HOST }}:/www/${{ env.edition }}/${{ env.version }}
- name: rollback cdn77 upload
if: ${{ failure() || cancelled() }}
run: |
s3cmd rm -r -f s3://s3downloadseu/${{ env.edition }}/${{ env.version }}