fix: use IA S3 keys for auth

This commit is contained in:
2026-06-08 14:16:35 +00:00
parent 26421b2725
commit 0061ebd7a8
+4 -8
View File
@@ -50,14 +50,10 @@ jobs:
- name: Upload to Internet Archive - name: Upload to Internet Archive
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
env: env:
IA_EMAIL: ${{ secrets.IA_EMAIL }} IA_ACCESS_KEY: ${{ secrets.IA_ACCESS_KEY }}
IA_PASSWORD: ${{ secrets.IA_PASSWORD }} IA_SECRET_KEY: ${{ secrets.IA_SECRET_KEY }}
run: | run: |
pip install --break-system-packages "internetarchive<1.0.0" pip install --break-system-packages internetarchive
# Try netrc auth
mkdir -p ~/.config
printf 'machine archive.org\nlogin %s\npassword %s\n' "$IA_EMAIL" "$IA_PASSWORD" > ~/.netrc
chmod 600 ~/.netrc
ISO=$(ls out/*.iso | head -1) ISO=$(ls out/*.iso | head -1)
ia upload antergos-next "$ISO" \ ia upload antergos-next "$ISO" \
--metadata="title:Antergos NeXT Live ISO" \ --metadata="title:Antergos NeXT Live ISO" \
@@ -68,4 +64,4 @@ jobs:
--metadata="subject:Antergos NeXT; Arch Linux; live ISO; Linux distribution" \ --metadata="subject:Antergos NeXT; Arch Linux; live ISO; Linux distribution" \
--metadata="language:eng" \ --metadata="language:eng" \
--metadata="mediatype:software" \ --metadata="mediatype:software" \
--metadata="collection:opensource" || echo "Upload failed, skipping..." --metadata="collection:opensource"