File tree Expand file tree Collapse file tree 2 files changed +84
-0
lines changed
Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build HTML-Attribute-Folder
2+
3+ runs :
4+ using : " composite"
5+ steps :
6+ - name : Setup Java
7+ uses : actions/setup-java@v4
8+ with :
9+ distribution : ' oracle'
10+ java-version : ${{ inputs.java_version }}
11+ cache : ' gradle'
12+
13+ - name : Setup Gradle
14+ uses : gradle/actions/setup-gradle@v4
15+
16+ - name : Build PlugIn
17+ shell : bash
18+ run : ./gradlew buildPlugin
19+
20+ - name : Tests and Verify Plugin
21+ shell : bash
22+ run : ./gradlew verifyPlugin check
23+
24+ - name : Release PlugIn
25+ uses : ncipollo/release-action@v1
26+ with :
27+ token : ${{ inputs.github_token }}
28+ artifacts : " build/distributions/html-attribute-folder-*.zip"
29+ name : " html-attribute-folder-${{ inputs.version }}.zip"
30+ tag : " v${{ inputs.version }}"
31+ allowUpdates : true
32+
33+ inputs :
34+ github_token :
35+ description : Access Token for GitHub
36+ required : true
37+ version :
38+ description : Version of the Release
39+ required : true
40+ java_version :
41+ description : Java version to use
42+ required : false
43+ default : " 21"
Original file line number Diff line number Diff line change 1+ name : Build and Release HTML-Attribute-Folder
2+ on :
3+ push :
4+ tags :
5+ - ' v*'
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : write
12+ steps :
13+ - name : Checkout project sources
14+ uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0
17+ fetch-tags : true
18+ ref : ${{ github.ref }}
19+
20+ - name : Get the version
21+ id : versions
22+ run : echo "TAGGED_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
23+
24+ - name : Get branch data
25+ uses : tj-actions/branch-names@v7
26+ id : branches
27+
28+ # For debugging purposes
29+ - name : Debug
30+ shell : bash
31+ run : |
32+ echo "Version: ${{ steps.versions.outputs.TAGGED_VERSION }}"
33+ echo "Branch : ${{ steps.branches.outputs.base_ref_branch || steps.branches.outputs.current_branch }}"
34+
35+ - name : Build and Release
36+ uses : ./.github/actions/build
37+ with :
38+ github_token : ${{ secrets.GITHUB_TOKEN }}
39+ version : ${{ steps.versions.outputs.TAGGED_VERSION }}
40+
41+ # TODO Release projekt at IntelliJ's Marketplace
You can’t perform that action at this time.
0 commit comments