Added tkinter and icons just in case #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build an ISO | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| env: | |
| KEY: ${{ secrets.CDN_KEY }} | |
| HOST: ${{ secrets.CDN_HOST }} | |
| CIUUID: ${{ secrets.CDN_CIUUID }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: secrets | |
| container: | |
| image: archlinux:latest | |
| options: --privileged | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Prepare keyring | |
| run: | | |
| pacman-key --init | |
| pacman --noconfirm -Sy archlinux-keyring | |
| echo cdn ${{ secrets.CDN_HOST }} | |
| echo cdn ${{ secrets.CDN_CIUUID }} | |
| - name: Install tools | |
| run: | | |
| rm /etc/pacman.conf | |
| cp pacman.conf /etc/pacman.conf | |
| pacman --noconfirm -Syyu | |
| pacman --noconfirm -S archiso git jq | |
| - name: Build ISO | |
| run: | | |
| mkarchiso -v . | |
| - name: Upload ISO | |
| run: | | |
| echo "Uploading to Odysen CI CDN..." | |
| ls out | |
| sleep 4 | |
| curl -H "authorization: ${{ secrets.CDN_KEY }}" -H "content-type: multipart/form-data" -H "x-zipline-folder: ${{ secrets.CDN_CIUUID }}" https://${{ secrets.CDN_HOST }}/api/upload -F "file=@$(find out | grep .iso)" | |