changed build file
This commit is contained in:
parent
5bc4004415
commit
607da03ddf
1 changed files with 12 additions and 3 deletions
15
.github/workflows/build.yaml
vendored
15
.github/workflows/build.yaml
vendored
|
@ -9,8 +9,11 @@ env:
|
||||||
api_key: ${{ secrets.GITHUB_TOKEN }}
|
api_key: ${{ secrets.GITHUB_TOKEN }}
|
||||||
name: ${{ github.event.repository.name }}
|
name: ${{ github.event.repository.name }}
|
||||||
release_name: ${{ github.ref_name }}
|
release_name: ${{ github.ref_name }}
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: archlinux:latest
|
image: archlinux:latest
|
||||||
|
@ -18,11 +21,17 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install Packages via Pacman
|
- 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
|
- name: Change Arch docker mirror
|
||||||
run: reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
|
run: reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: mkarchiso -v iso/
|
run: mkarchiso -v iso/
|
||||||
- name: Upload iso to the release
|
- 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 }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue