post-entrypoint script
This commit is contained in:
38
action.yml
38
action.yml
@@ -4,39 +4,19 @@ description: build and publish an Arch package
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: sanity check
|
|
||||||
shell: bash
|
|
||||||
run: echo "🏃 Running! cloning ${{ github.repository }} ..."
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Permissions
|
- name: Create publish script
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
chmod -R 777 .
|
echo "#!/bin/bash
|
||||||
|
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: Build package
|
- name: Build package
|
||||||
uses: https://git.sanin.dev/packages_test/build-publish/@build
|
uses: https://git.sanin.dev/packages_test/build-publish/@build
|
||||||
|
|
||||||
# - name: Build package
|
|
||||||
# shell: bash
|
|
||||||
# run: |
|
|
||||||
# docker run --rm \
|
|
||||||
# -v "$GITEA_WORKSPACE":"$GITEA_WORKSPACE" \
|
|
||||||
# -e REPO=. \
|
|
||||||
# -e WORKSPACE="$GITEA_WORKSPACE" \
|
|
||||||
# corysanin/archery:artix
|
|
||||||
|
|
||||||
|
|
||||||
# - name: Publish package
|
|
||||||
# shell: bash
|
|
||||||
# run: |
|
|
||||||
# echo "📤️ Uploading package ..."
|
|
||||||
# curl --user ${{ secrets.USERNAME }}:${{ secrets.TOKEN }} \
|
|
||||||
# --upload-file ./*.tar.zst \
|
|
||||||
# "${{ GITHUB_SERVER_URL }}/api/packages/packages_test/arch/microverse"
|
|
||||||
|
|
||||||
- name: ls
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
ls -al
|
|
||||||
|
|||||||
Reference in New Issue
Block a user