forked from makasprzak/step-builder-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8867b94
commit f8b4438
Showing
4 changed files
with
75 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Publish | ||
on: | ||
# Enable manual run | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "*.*" | ||
env: | ||
pkg_name: step-builder | ||
jobs: | ||
create-build: | ||
name: Create ${{ matrix.target }} build | ||
runs-on: ${{ matrix.os }} | ||
# softprops/action-gh-release needs this permission | ||
permissions: | ||
contents: write | ||
|
||
strategy: | ||
# Disable fail-fast as we want results from all even if one fails. | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
target: linux | ||
build_path: build/distributions | ||
|
||
steps: | ||
- name: Install JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "zulu" | ||
java-version: "17" | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Up Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: '8.10.2' | ||
|
||
# Build the project | ||
- name: Build and Sign Plugin | ||
env: | ||
CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERT_CHAIN }} | ||
PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} | ||
PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} | ||
run: ./gradlew clean buildPlugin signPlugin | ||
|
||
- name: Add packaged build to release draft | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
draft: false | ||
files: build/distributions/*.zip | ||
token: ${{ secrets.STEP_BUILDER_RELEASE_KEY }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters