Skip to content

Commit

Permalink
Parch Trinity
Browse files Browse the repository at this point in the history
  • Loading branch information
behdanisohrab committed Mar 5, 2024
1 parent eeb5b54 commit 0237912
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# This workflow will build an Arch Linux ISO file when a release is created.
# This workflow will build an Arch Linux ISO file with the commit on it
name: build parchiso per release
on:
release:
types:
- created

env:
api_key: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.event.repository.name }}
release_name: ${{ github.ref_name }}
GH_TOKEN: ${{ github.token }}
jobs:
build:
permissions:
Expand All @@ -15,22 +20,18 @@ jobs:
options: --privileged
steps:
- uses: actions/checkout@v3
- name: Add Trinity keys
run: |
pacman-key --recv-keys 8685AD8B
- name: Install Packages via Pacman
run: |
pacman -Suy --noconfirm --noprogressbar
pacman -Sy --noconfirm --noprogressbar --needed git archiso python python-pygithub reflector
- name: Change pacman mirrors
run: |
reflector -n 3 --protocol https --save /etc/pacman.d/mirrorlist
pacman -Syy
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
env:
API_KEY: ${{ secrets.GITHUB_TOKEN }}
REPO_NAME: ${{ github.repository }}
RELEASE_NAME: ${{ github.ref_name }}
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 }}
3 changes: 1 addition & 2 deletions iso/packages.x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,9 @@ parch-welcome
#systemutils
btop
xdg-user-dirs
packagekit-qt5
neofetch-git
ttf-dejavu
firefox
vazirmatn-fonts

#parchlinuxstuff
calamares
Expand Down
2 changes: 1 addition & 1 deletion iso/pacman.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Architecture = auto
#NoProgressBar
CheckSpace
#VerbosePkgLists
ParallelDownloads = 5
#ParallelDownloads = 5

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
Expand Down

0 comments on commit 0237912

Please sign in to comment.