-
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
Showing
20 changed files
with
261 additions
and
74 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,72 @@ | ||
name: Conveyor Deploy | ||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
deploy: | ||
runs-on: linux | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Validate Gradle Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Test | ||
run: ./gradlew test --stacktrace | ||
env: | ||
env: CI | ||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g" | ||
|
||
- name: Build | ||
run: ./gradlew jar -PversionString="${{ github.ref_name }}" # TODO use "proguardReleaseJars" as this also uses Pro-Guard (but there needs to be more configuration [ProGuard, gradle and conveyor]) | ||
env: | ||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g" | ||
|
||
- name: Extract secrets | ||
run: | | ||
echo "${{ secrets.KEYS_TAR_ASC }}" > .keys.tar.gz.asc | ||
gpg -d --passphrase "${{ secrets.KEYS_PASSPHRASE }}" --batch .keys.tar.gz.asc > .keys.tar.gz | ||
tar xzf .keys.tar.gz | ||
cd .. | ||
- name: Run Conveyor | ||
uses: hydraulic-software/conveyor/actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }} | ||
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }} | ||
with: | ||
command: make copied-site | ||
extra_flags: -f ci.conveyor.conf | ||
signing_key: ${{ secrets.SIGNING_KEY }} | ||
agree_to_license: 1 | ||
|
||
- name: Create latest | ||
run: | | ||
cd build/compose/binaries/main/${{ matrix.pkg }}/ | ||
cp ./* ./WaiterRobot-Desktop-latest.${{ matrix.pkg}} | ||
- name: Move to release server | ||
uses: garygrossgarten/github-action-scp@release | ||
with: | ||
local: build/compose/binaries/main/${{ matrix.pkg }} | ||
remote: /var/www/datepoll-share/WaiterRobot/Desktop-Releases/${{ matrix.pkg}} | ||
host: ${{ secrets.RELEASES_SSH_HOST }} | ||
port: ${{ secrets.RELEASES_SSH_PORT }} | ||
username: ${{ secrets.RELEASES_SSH_USER }} | ||
privateKey: ${{ secrets.RELEASES_SSH_PRIVATE_KEY }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,25 @@ | ||
include required("conveyor.conf") | ||
|
||
app { | ||
|
||
site { | ||
github { | ||
oauth-token = ${env.GITHUB_TOKEN} | ||
pages-branch = gh-pages | ||
} | ||
} | ||
|
||
#signing-key = ${env.SIGNING_KEY} | ||
|
||
#mac.certificate = .keys/apple.cer | ||
|
||
# We probably need to use a self-signed one here (certificates for windows cost around 400 - 500€ per year) | ||
# Another option would be to distribute through the Microsoft-AppStore (~20€ a year) | ||
#windows.certificate = .keys/windows.cer | ||
|
||
#mac.notarization { | ||
# issuer-id = ${env.APPLE_ISSUER_ID} | ||
# key-id = ${env.APPLE_KEY_ID} | ||
# private-key = .keys/api_key.p8 | ||
#} | ||
} |
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,27 @@ | ||
// This is a hashbang include. You can run the command after the #! to see what | ||
// configuration is being extracted from the Gradle build using the Conveyor plugin. | ||
include "#!./gradlew -q printConveyorConfig" | ||
|
||
// This enables native library extraction, which improves app startup time and robustness. | ||
// It's optional but a good idea to have it. You can remove this if you get tired of specifying | ||
// system properties for Java libraries with native components. | ||
// | ||
// See https://hydraulic.dev/blog/11-in-jar-signing.html for more. | ||
include required("https://raw.githubusercontent.com/hydraulic-software/conveyor/master/configs/jvm/extract-native-libraries.conf") | ||
|
||
// Config file documentation: https://conveyor.hydraulic.dev/latest/configs | ||
app { | ||
rdns-name = "org.datepollsystems.waiterrobot.mediator" | ||
display-name = kellner.team | ||
vendor = DatePollSystems | ||
contact-email = "[email protected]" | ||
|
||
icons = icon.svg // TODO add and change loading of it in App.kt | ||
windows.inputs += TASK/rendered-icons/windows | ||
linux.inputs += TASK/rendered-icons/linux | ||
|
||
vcs-url = github.com/DatepollSystems/waiterrobot-desktop | ||
license = GPL-3.0 | ||
} | ||
|
||
conveyor.compatibility-level = 12 |
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
16 changes: 0 additions & 16 deletions
16
src/main/kotlin/org/datepollsystems/waiterrobot/mediator/data/api/GitHubApi.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.