rest of the owl

This commit is contained in:
2025-10-29 00:47:01 -05:00
parent 9d80ec6dfb
commit cecc4d3f16
2 changed files with 37 additions and 21 deletions

View File

@@ -1,21 +0,0 @@
name: Publish package
jobs:
build_app_image:
name: Build app image
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build package
run: docker run --rm -e REPO=. -v `pwd`:/home/user/pkg
- name: Publish package
run: |
curl --user ${{ secrets.USERNAME }}:${{ secrets.TOKEN }} \
--upload-file ./*.tar.zst \
"${{ GITHUB_SERVER_URL }}/api/packages/packages_test/arch/microverse"

37
action.yml Normal file
View File

@@ -0,0 +1,37 @@
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 -f --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 }}