Skip to content

Commit

Permalink
Update releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu-Core committed Sep 20, 2024
1 parent bf45a25 commit 8b94f19
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: releases
name: releases

on:
workflow_dispatch:
Expand All @@ -12,8 +12,6 @@ env:
CSPROJ_FILE_PATH: 'src/SwashbucklerDiary.Maui/SwashbucklerDiary.Maui.csproj'
APP_NAME: 'SwashbucklerDiary'
STORE_ID: '9P6PBVBF466L'
GITEE_USERNAME: 'Yu-core'
GITEE_REPO: 'SwashbucklerDiary'

jobs:
windowsAndAndroid:
Expand Down Expand Up @@ -89,20 +87,6 @@ jobs:
name: ${{ env.APPLICATION_DISPLAY_VERSION }}
tag: 'v${{ env.APPLICATION_DISPLAY_VERSION }}'

# Release to Gitee
- name: Release to Gitee
run: |
curl -X POST \
--header 'Content-Type: application/json;charset=UTF-8' \
'https://gitee.com/api/v5/repos/${{ env.GITEE_USERNAME }}/${{ env.GITEE_REPO }}/releases' \
-d '{
"access_token": "${{ secrets.GITEE_TOKEN }}",
"tag_name": "v${{ env.APPLICATION_DISPLAY_VERSION }}",
"name": "${{ env.APPLICATION_DISPLAY_VERSION }}",
"body": "Release ${{ env.APPLICATION_DISPLAY_VERSION }}",
"target_commitish": "master"
}'
# Replace the version in Package.appxmanifest
- name: Update version in Package.appxmanifest
shell: bash
Expand Down

0 comments on commit 8b94f19

Please sign in to comment.