38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Publish package
|
|
description: build and publish an Arch package
|
|
|
|
inputs:
|
|
username:
|
|
description: 'Gitea username'
|
|
required: true
|
|
token:
|
|
description: 'Gitea PAT'
|
|
required: true
|
|
|
|
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 }} ...'
|
|
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: "${{ inputs.username }}"
|
|
token: ${{ inputs.token }}
|