common workflow, take 1
This commit is contained in:
21
.gitea/workflows/publish.yml
Normal file
21
.gitea/workflows/publish.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
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"
|
||||||
Reference in New Issue
Block a user