From 607da03ddf7e7e4ba4fb5dfaede8c85505eebac6 Mon Sep 17 00:00:00 2001 From: Sohrab Behdani Date: Fri, 16 Feb 2024 18:01:37 +0330 Subject: [PATCH] changed build file --- .github/workflows/build.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e593405..2423a17 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,8 +9,11 @@ env: api_key: ${{ secrets.GITHUB_TOKEN }} name: ${{ github.event.repository.name }} release_name: ${{ github.ref_name }} + GH_TOKEN: ${{ github.token }} jobs: build: + permissions: + contents: write runs-on: ubuntu-latest container: image: archlinux:latest @@ -18,11 +21,17 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install Packages via Pacman - run: pacman -Sy; pacman --noconfirm -S git archiso python python-pygithub reflector + run: pacman -Sy; pacman --noconfirm -S git archiso python python-pygithub github-cli reflector p7zip - name: Change Arch docker mirror run: reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist - name: Build image run: mkarchiso -v iso/ - name: Upload iso to the release - run: python tools/upload_asset.py - + run: | + cd ./out + mkdir iso_parts + # split -d -b 2000M "$(ls *.iso)" iso_parts/"$(ls *.iso)"_part + #zip -s 2000m iso_parts/"$(ls *.iso)".zip "$(ls *.iso)" + 7z -v1000m a iso_parts/"$(ls *.iso)".zip "$(ls *.iso)" + md5sum iso_parts/* > iso_parts/md5sums.txt + gh release upload ${{ github.event.release.tag_name }} ./iso_parts/* -R ${{ github.repository }}