#1 : Publish generic package to gitea #2
@@ -8,17 +8,10 @@ jobs:
|
|||||||
self-test:
|
self-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Debug actions context
|
|
||||||
run: |
|
|
||||||
echo "secret source: ${{ gitea.secret_source }}"
|
|
||||||
echo "secret length: ${#TEST_SECRET}"
|
|
||||||
echo "variable: ${{ vars.VAR_TEST }}"
|
|
||||||
env:
|
|
||||||
TEST_SECRET: ${{ secrets.SECRET_TEST }}
|
|
||||||
- run: touch text.txt
|
- run: touch text.txt
|
||||||
- uses: https://source.vague.tech/open-vague/ci-actions/publish@feature/1-publish
|
- uses: https://source.vague.tech/open-vague/ci-actions/publish@feature/1-publish
|
||||||
with:
|
with:
|
||||||
file: text.txt
|
file: text.txt
|
||||||
package: control-room-sdk-godoc
|
package: a-proper-test-package
|
||||||
version: master
|
version: master
|
||||||
force: false
|
force: false
|
||||||
+1
-2
@@ -20,8 +20,7 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "Token: ${{ secrets.SECRET_TEST }}, ${{ vars.VAR_TEST }}! ${{ secrets.SECRET_SOME }}, ${{ vars.VAR_SOME }}?"
|
curl --fail-with-body \
|
||||||
curl -i --fail-with-body \
|
|
||||||
--user "acti-bot:${{ secrets.ACTI_BOT_TOKEN }}" \
|
--user "acti-bot:${{ secrets.ACTI_BOT_TOKEN }}" \
|
||||||
--upload-file ${{ inputs.file }} \
|
--upload-file ${{ inputs.file }} \
|
||||||
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}"
|
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user