27 lines
762 B
YAML
27 lines
762 B
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
|
|
sudo pacman -S curl --noconfirm --noprogressbar && \
|
|
echo '📤️ Uploading package ...'
|
|
curl --user ${{ secrets.USERNAME }}:${{ secrets.TOKEN }} \
|
|
--upload-file ./*.tar.zst \
|
|
'${{ GITHUB_SERVER_URL }}/api/packages/packages_test/arch/microverse'
|
|
" > ./post-entrypoint.sh
|
|
chmod +x ./post-entrypoint.sh
|
|
|
|
- name: why
|
|
run: ls -al
|
|
|
|
- name: Build package
|
|
uses: https://git.sanin.dev/packages_test/build-publish/@build
|