Skip to content

Commit

Permalink
fix GitHub workflows, update to v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Maple-pro committed May 23, 2024
1 parent f609ce6 commit ee6e537
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
# Remove old release drafts by using the curl request for the available releases with draft flag
- name: Remove Old Release Drafts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
gh api repos/{owner}/{repo}/releases \
--jq '.[] | select(.draft == true) | .id' \
Expand All @@ -147,7 +147,7 @@ jobs:
# Create new release draft - which is not publicly visible and requires manual acceptance
- name: Create Release Draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
gh release create v${{ needs.build.outputs.version }} \
--draft \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ jobs:
# Upload artifact as a release asset
- name: Upload Release Asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN}}
run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*

# Create pull request
- name: Create Pull Request
if: ${{ steps.properties.outputs.changelog != '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
VERSION="${{ github.event.release.tag_name }}"
BRANCH="changelog-update-$VERSION"
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ My awesome project that provides a lot of useful features, like:
## [Unreleased]

### Added
- Fix GitHub workflows

### Changed

Expand All @@ -21,7 +22,12 @@ My awesome project that provides a lot of useful features, like:

### Security

## [1.2.1] - 2023-12-04
## [1.2.2] - 2024-05-23

### Changed
- Unset until-build number.

## 1.2.1 - 2023-12-04

### Fixed
- 错误的 File 依赖导致无法正常运行
Expand Down
9 changes: 3 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ changelog {
groups.set(listOf("Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"))
lineSeparator.set("\n")
combinePreReleases.set(true)
sectionUrlBuilder.set(
ChangelogSectionUrlBuilder { repositoryUrl, currentVersion, previousVersion, isUnreleased ->
"foo"
}
)
repositoryUrl.set("https://github.com/Maple-pro/kotsuite")
}

// Configure Gradle Qodana Plugin - read more: https://github.com/JetBrains/gradle-qodana-plugin
Expand Down Expand Up @@ -99,7 +95,7 @@ tasks {
patchPluginXml {
version.set(properties("pluginVersion"))
sinceBuild.set(properties("pluginSinceBuild"))
untilBuild.set(properties("pluginUntilBuild"))
// untilBuild.set(properties("pluginUntilBuild"))

// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
pluginDescription.set(
Expand Down Expand Up @@ -160,6 +156,7 @@ tasks {
runIde {
jbrVersion.set("jbr_jcef-17.0.8b1000.8")
}

buildSearchableOptions {
enabled = false
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ platformVersion=2023.2.1.2
platformType=AI
org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M"
platformPlugins=android, com.intellij.java
pluginVersion=1.2.1
pluginVersion=1.2.3
pluginSinceBuild=222
pluginUntilBuild=232.*
ASPath=C\:\\Users\\17199\\AppData\\Local\\JetBrains\\Toolbox\\apps\\AndroidStudio\\ch-0\\221.6008.13.2211.9619390
Expand Down

0 comments on commit ee6e537

Please sign in to comment.