Add Internet Archive upload to CI

This commit is contained in:
2026-06-07 20:39:24 +02:00
parent f29f3a8e83
commit 2c726ecb64
+19 -2
View File
@@ -26,7 +26,8 @@ jobs:
wget \ wget \
imagemagick \ imagemagick \
sudo \ sudo \
base-devel base-devel \
python-pip
- name: Create build user - name: Create build user
run: | run: |
@@ -40,8 +41,24 @@ jobs:
- name: Build ISO - name: Build ISO
run: ./mkarchiso -v "." run: ./mkarchiso -v "."
- name: Upload ISO - name: Upload ISO artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Antergos-NeXT-ISO name: Antergos-NeXT-ISO
path: out/ path: out/
- name: Upload to Internet Archive
if: github.ref == 'refs/heads/master'
env:
IA_EMAIL: ${{ secrets.IA_EMAIL }}
IA_PASSWORD: ${{ secrets.IA_PASSWORD }}
run: |
pip install internetarchive
ia configure --email="$IA_EMAIL" --password="$IA_PASSWORD"
ISO=$(ls out/*.iso | head -1)
ia upload antergos-next "$ISO" \
--metadata="title:Antergos NeXT Live ISO" \
--metadata="creator:Antergos NeXT" \
--metadata="date:$(date +%Y-%m-%d)" \
--metadata="description:Antergos NeXT live installation ISO based on Arch Linux" \
--metadata="collection:opensource"