ci(GiteaActions): 使用密钥推送包
All checks were successful
Publish when Pushed / Explore-Gitea-Actions (push) Successful in 22s

Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
This commit is contained in:
李东云
2023-10-23 19:19:58 +08:00
parent 063c1d7ea1
commit 82d9a95691

View File

@@ -5,6 +5,8 @@ on: [ push ]
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
runs-on: ubuntu-latest runs-on: ubuntu-latest
secrets:
USERNAME:
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
@@ -23,7 +25,7 @@ jobs:
zip hdk-core.dist.zip * zip hdk-core.dist.zip *
- name: Publish to registry - name: Publish to registry
run: | run: |
curl --user ${{ secrets.SERVER_USERNAME }}:${{ secrets.SERVER_PASSWORD }} \ curl --user ch4o5:4fd300672472e666014314c1c94c604c634165a9 \
--upload-file ./hdk-core.dist.zip \ --upload-file ./hdk-core.dist.zip \
https://nest.doylee.cn/api/packages/hdk/composer?version=dev-${{ gitea.ref_name }} https://nest.doylee.cn/api/packages/hdk/composer?version=dev-${{ gitea.ref_name }}
- run: echo "🍏 This job's status is ${{ job.status }}." - run: echo "🍏 This job's status is ${{ job.status }}."