parent
c4470b41eb
commit
8dd87b1036
|
|
@ -221,9 +221,9 @@ jobs:
|
||||||
needs: upload
|
needs: upload
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env: # 设置job下全steps的环境变量
|
env: # 设置job下全steps的环境变量
|
||||||
GITEA_API_URL: https://gitea.example.com/api/v1
|
GITEA_API_URL: https://git.ewancle.com/api/v1
|
||||||
GITEA_USER: youruser
|
GITEA_USER1: xiehaijun
|
||||||
GITEA_REPO: yourrepo
|
GITEA_REPO1: study-plan
|
||||||
ARTIFACT_FILE: dist/release.zip
|
ARTIFACT_FILE: dist/release.zip
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
@ -336,8 +336,8 @@ jobs:
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
id: create_release
|
id: create_release
|
||||||
run: |
|
run: |
|
||||||
response=$(curl -s -X POST "${GITEA_API_URL}/repos/${GITEA_USER}/${GITEA_REPO}/releases" \
|
response=$(curl -s -X POST "${GITEA_API_URL}/repos/${GITEA_USER1}/${GITEA_REPO1}/releases" \
|
||||||
-H "Authorization: token ${{ secrets.GITEA_PAT }}" \
|
-H "Authorization: token ${{ secrets.MY_APP_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d @- <<EOF
|
-d @- <<EOF
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue