This repository has been archived on 2025-11-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
build-publish/action.yml
2025-10-29 00:20:30 -05:00

37 lines
1.1 KiB
YAML

name: Publish package
description: build and publish an Arch package
runs:
using: "composite"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create publish script
shell: bash
run: |
echo "#!/bin/bash
echo '📤️ Uploading package to ${{ gitea.server_url }} ...'
if [ -z "$username" ]
then
echo "NO USERNAME DETECTED"
fi
curl --user \"\$username:\$token\" \
--upload-file ./*.tar.zst \
'${{ gitea.server_url }}/api/packages/packages_test/arch/microverse'
" > "./post-entrypoint.sh"
chmod +x "./post-entrypoint.sh"
git config --global user.name 'Guy Incognito'
git config --global user.email 'user@local'
git add "./post-entrypoint.sh"
git commit -m "fuck you, gitea"
- name: Build package
uses: https://git.sanin.dev/packages_test/build-publish/@build
with:
username: ${{ secrets.USERNAME }}
token: ${{ secrets.TOKEN }}
env:
username: ${{ secrets.USERNAME }}
token: ${{ secrets.TOKEN }}