Compare commits

..

No commits in common. "main" and "v1.0.6" have entirely different histories.
main ... v1.0.6

View File

@ -7,6 +7,7 @@ on:
env: env:
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址 GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
TAG_NAME: $(echo $GITHUB_REF | sed 's/refs\/tags\///')
jobs: jobs:
release: release:
@ -17,12 +18,12 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Generate Changelog - name: Generate Changelog
run: | run: |
echo "Current version: ${{ github.ref_name }}"
wget -O /usr/bin/changelog https://gitea.com/gitea/changelog/releases/download/v1.0.0/changelog-1.0.0-linux-amd64 wget -O /usr/bin/changelog https://gitea.com/gitea/changelog/releases/download/v1.0.0/changelog-1.0.0-linux-amd64
chmod +x /usr/bin/changelog chmod +x /usr/bin/changelog
changelog -m=${{ github.ref_name }} -c=./changelog.yaml changelog -m=$TAG_NAME -c=./changelog.yaml
# 创建 Gitea Release # 创建 Gitea Release
- name: Create Gitea Release - name: Create Gitea Release
@ -33,7 +34,7 @@ jobs:
-H "Authorization: token $GITEA_TOKEN" \ -H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{ -d '{
"tag_name": "'"${{ github.ref_name }}"'", "tag_name": "'"$TAG_NAME"'",
"target_commitish": "main", "target_commitish": "main",
"name": "'"$TAG_NAME"'", "name": "'"$TAG_NAME"'",
"body": "'"waiting..."'", "body": "'"waiting..."'",