@@ -66,68 +66,22 @@ jobs:
66
66
java-version : 17
67
67
cache : gradle
68
68
69
- # Set environment variables
70
- - name : Export Properties
71
- id : properties
72
- shell : bash
73
- run : |
74
- PROPERTIES="$(./gradlew properties --console=plain -q)"
75
- VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
76
- NAME="$(echo "$PROPERTIES" | grep "^pluginName:" | cut -f2- -d ' ')"
77
- CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
78
- CHANGELOG="${CHANGELOG//'%'/'%25'}"
79
- CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
80
- CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
81
- echo "::set-output name=version::$VERSION"
82
- echo "::set-output name=name::$NAME"
83
- echo "::set-output name=changelog::$CHANGELOG"
84
- echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier"
85
- ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
86
-
87
69
# Run plugin build
88
70
- name : Run Build
89
- run : ./gradlew clean buildPlugin --info
90
-
91
- # until https://github.com/JetBrains/gradle-intellij-plugin/issues/1027 is solved
92
-
93
- # # Cache Plugin Verifier IDEs
94
- # - name: Setup Plugin Verifier IDEs Cache
95
- # uses: actions/cache@v2.1.7
96
- # with:
97
- # path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
98
- # key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }}
99
- #
100
- # # Run Verify Plugin task and IntelliJ Plugin Verifier tool
101
- # - name: Run Plugin Verification tasks
102
- # run: ./gradlew runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }}
103
- #
104
- # # Collect Plugin Verifier Result
105
- # - name: Collect Plugin Verifier Result
106
- # if: ${{ always() }}
107
- # uses: actions/upload-artifact@v4
108
- # with:
109
- # name: pluginVerifier-result
110
- # path: ${{ github.workspace }}/build/reports/pluginVerifier
71
+ run : ./gradlew clean build --info
111
72
112
73
# Run Qodana inspections
113
74
- name : Qodana - Code Inspection
114
75
uses : JetBrains/qodana-action@v2023.3.2
115
76
116
- # Prepare plugin archive content for creating artifact
117
- - name : Prepare Plugin Artifact
118
- id : artifact
119
- shell : bash
120
- run : |
121
- cd ${{ github.workspace }}/build/distributions
122
- FILENAME=`ls *.zip`
123
- unzip "$FILENAME" -d content
124
- echo "::set-output name=filename::${FILENAME:0:-4}"
125
77
# Store already-built plugin as an artifact for downloading
126
- - name : Upload artifact
127
- uses : actions/upload-artifact@v4
128
- with :
129
- name : ${{ steps.artifact.outputs.filename }}
130
- path : ./build/distributions/content/*/*
78
+ # TODO: Need a modified copyPlugin task or something like that to copy all
79
+ # the required jar files.
80
+ # - name: Upload artifact
81
+ # uses: actions/upload-artifact@v4
82
+ # with:
83
+ # name: ${{ steps.artifact.outputs.filename }}
84
+ # path: ./build/distributions/content/*/*
131
85
132
86
# Prepare a draft release for GitHub Releases page for the manual verification
133
87
# If accepted and published, release workflow would be triggered
@@ -142,24 +96,26 @@ jobs:
142
96
- name : Fetch Sources
143
97
uses : actions/checkout@v4.1.7
144
98
99
+ # TODO: If we keep the two plugins in the same repository, we need a way
100
+ # to differentiate the tags and releases.
145
101
# Remove old release drafts by using the curl request for the available releases with draft flag
146
102
- name : Remove Old Release Drafts
147
103
env :
148
104
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
149
- run : |
150
- gh api repos/{owner}/{repo}/releases \
151
- --jq '.[] | select(.draft == true) | .id' \
152
- | xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}
105
+ run : echo "Not implemented" ; exit 1 # |
106
+ # gh api repos/{owner}/{repo}/releases \
107
+ # --jq '.[] | select(.draft == true) | .id' \
108
+ # | xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}
153
109
# Create new release draft - which is not publicly visible and requires manual acceptance
154
110
- name : Create Release Draft
155
111
env :
156
112
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
157
- run : |
158
- gh release create v${{ needs.build.outputs.version }} \
159
- --draft \
160
- --target ${GITHUB_REF_NAME} \
161
- --title "v${{ needs.build.outputs.version }}" \
162
- --notes "$(cat << 'EOM'
163
- ${{ needs.build.outputs.changelog }}
164
- EOM
165
- )"
113
+ run : echo "Not implemented" ; exit 1 # |
114
+ # gh release create v${{ needs.build.outputs.version }} \
115
+ # --draft \
116
+ # --target ${GITHUB_REF_NAME} \
117
+ # --title "v${{ needs.build.outputs.version }}" \
118
+ # --notes "$(cat << 'EOM'
119
+ # ${{ needs.build.outputs.changelog }}
120
+ # EOM
121
+ # )"
0 commit comments