Skip to content

Commit

Permalink
release1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mdddj committed May 25, 2024
1 parent bb3878b commit 9b5a9d5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@ jobs:
steps:

# 查看当前存储库
- name: Fetch Sources
- name: 查看当前存储库
uses: actions/checkout@v4
with:
ref: main

# 为后续步骤设置 Java 环境
- name: Setup Java
- name: 为后续步骤设置 Java 环境
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17

# 设置 Gradle
- name: Setup Gradle
- name: 设置 Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true

# 设置环境变量
- name: Export Properties
- name: 设置环境变量
id: properties
shell: bash
run: |
Expand All @@ -52,30 +52,30 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT
# 使用当前发行说明更新未发布部分
- name: Patch Changelog
- name: 使用当前发行说明更新未发布部分
if: ${{ steps.properties.outputs.changelog != '' }}
env:
CHANGELOG: ${{ steps.properties.outputs.changelog }}
run: |
./gradlew patchChangelog --release-note="$CHANGELOG"
# 将插件发布到 JetBrains Marketplace
- name: Publish Plugin
- name: 将插件发布到 JetBrains Marketplace
env:
PUBLISH_TOKEN: ${{ secrets.PUSH_TOKEN }}
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATECHAIN }}
PRIVATE_KEY: ${{ secrets.PRIVATEKEY }}
PRIVATE_KEY_PASSWORD: ${{ secrets.PASSWORD }}
run: ./gradlew publishPlugin -Dorg.gradle.project.intellijPublishToken=${{ secrets.PUBLISH_TOKEN }}
run: ./gradlew publishPlugin

# 上传工件作为发布资产
- name: Upload Release Asset
- name: 上传工件作为发布资产 ${{github.event.release.tag_name}}
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*

# 创建拉取请求
- name: Create Pull Request
- name: 创建拉取请求
if: ${{ steps.properties.outputs.changelog != '' }}
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
Expand Down

0 comments on commit 9b5a9d5

Please sign in to comment.