chore(deps-dev): bump @babel/traverse from 7.15.4 to 7.23.2 in /serverpackcreator-web-frontend #2964
Workflow file for this run
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
name: Test | |
on: | |
push: | |
tags-ignore: | |
- '**' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
jar: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Get branch name | |
id: branch-name | |
uses: tj-actions/[email protected] | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
check-latest: true | |
cache: 'gradle' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- uses: gradle/[email protected] | |
with: | |
gradle-version: wrapper | |
- name: Build with Gradle | |
run: ./gradlew -Pversion=${{ steps.branch-name.outputs.current_branch }} build --info --full-stacktrace | |
- uses: actions/[email protected] | |
if: ${{ always() }} | |
with: | |
name: build-artifacts | |
path: | | |
build | |
buildSrc/build | |
serverpackcreator-api/build | |
serverpackcreator-app/build | |
serverpackcreator-cli/build | |
serverpackcreator-web/build | |
serverpackcreator-updater/build | |
serverpackcreator-web-frontend/dist | |
serverpackcreator-plugin-example/build | |
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` | |
mac-01: | |
runs-on: macos-latest | |
steps: | |
# GET THE LATEST CODE | |
- name: Checkout latest code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
# BUILD PROJECT AND PUBLISH | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
check-latest: true | |
cache: 'gradle' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- uses: gradle/[email protected] | |
with: | |
gradle-version: wrapper | |
- name: Build installer | |
env: | |
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew :serverpackcreator-app:jpackage --info --full-stacktrace | |
- name: Rename | |
run: mv serverpackcreator-app/build/dist/* serverpackcreator-app/build/dist/ServerPackCreator-Installer-MacOS-dev.pkg | |
# UPLOAD OS-SPECIFICS | |
- name: Upload | |
uses: actions/[email protected] | |
if: ${{ always() }} | |
with: | |
name: mac-installer-artifacts | |
path: | | |
serverpackcreator-app/build | |
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` | |
windows-01: | |
runs-on: windows-latest | |
steps: | |
# GET THE LATEST CODE | |
- name: Checkout latest code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
# BUILD PROJECT AND PUBLISH | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
check-latest: true | |
cache: 'gradle' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- uses: gradle/[email protected] | |
with: | |
gradle-version: wrapper | |
- name: Prepare wix-toolset | |
if: matrix.os == 'windows-latest' | |
run: echo "${env:path};${env:wix}bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 | |
- name: Build installer | |
env: | |
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew :serverpackcreator-app:jpackage --info --full-stacktrace | |
- name: Rename | |
run: mv serverpackcreator-app/build/dist/* serverpackcreator-app/build/dist/ServerPackCreator-Installer-Windows-dev.msi | |
# UPLOAD OS-SPECIFICS | |
- name: Upload | |
uses: actions/[email protected] | |
if: ${{ always() }} | |
with: | |
name: windows-installer-artifacts | |
path: | | |
serverpackcreator-app/build | |
if-no-files-found: warn # 'warn' or 'ig | |
windows-02: | |
runs-on: windows-latest | |
steps: | |
# GET THE LATEST CODE | |
- name: Checkout latest code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
# BUILD PROJECT AND PUBLISH | |
- name: Set up JDK 17 | |
id: java | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
check-latest: true | |
cache: 'gradle' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- uses: gradle/[email protected] | |
with: | |
gradle-version: wrapper | |
- name: Prepare wix-toolset | |
if: matrix.os == 'windows-latest' | |
run: echo "${env:path};${env:wix}bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 | |
- name: Prepare | |
env: | |
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew :serverpackcreator-app:build :serverpackcreator-app:copyDependencies :serverpackcreator-app:copyJar :serverpackcreator-app:cleanTmpPackager --info --full-stacktrace | |
- name: Build Image | |
run: | | |
jpackage ` | |
--app-version "6.6.6" ` | |
--copyright "Copyright (C) 2023 Griefed" ` | |
--description "Create server packs from Minecraft Forge, Fabric, Quilt or LegacyFabric modpacks." ` | |
--dest "serverpackcreator-app\build\dist" ` | |
--icon "serverpackcreator-app\jpackagerResources\app.ico" ` | |
--input "serverpackcreator-app\build\jars" ` | |
--java-options "-Dfile.encoding=UTF-8" ` | |
--java-options "-Dlog4j2.formatMsgNoLookups=true" ` | |
--main-class de.griefed.serverpackcreator.app.ServerPackCreatorKt ` | |
--main-jar serverpackcreator-app-dev-plain.jar ` | |
--name ServerPackCreator ` | |
--resource-dir "serverpackcreator-app\jpackagerResources" ` | |
--runtime-image "${{ steps.java.outputs.path }}" ` | |
--temp "serverpackcreator-app\build\tmp\jpackager" ` | |
--type "app-image" ` | |
--vendor "griefed.de" ` | |
--verbose | |
- name: List | |
run: dir serverpackcreator-app\build\dist | |
- name: Archive | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
directory: serverpackcreator-app/build/dist | |
path: 'ServerPackCreator' | |
filename: 'ServerPackCreator-Portable-Windows.zip' | |
- name: List | |
run: dir serverpackcreator-app\build\dist | |
# UPLOAD OS-SPECIFICS | |
- name: Upload | |
uses: actions/[email protected] | |
if: ${{ always() }} | |
with: | |
name: windows-installer-artifacts | |
path: | | |
serverpackcreator-app/build/dist/ServerPackCreator-Portable-Windows.zip | |
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` | |
ubuntu-01: | |
runs-on: ubuntu-latest | |
steps: | |
# GET THE LATEST CODE | |
- name: Checkout latest code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
# BUILD PROJECT AND PUBLISH | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
check-latest: true | |
cache: 'gradle' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- uses: gradle/[email protected] | |
with: | |
gradle-version: wrapper | |
- name: Build installer | |
env: | |
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew :serverpackcreator-app:jpackage --info --full-stacktrace | |
- name: Rename | |
run: mv serverpackcreator-app/build/dist/* serverpackcreator-app/build/dist/ServerPackCreator-Installer-Ubuntu-dev-amd64.deb | |
# UPLOAD OS-SPECIFICS | |
- name: Upload | |
uses: actions/[email protected] | |
if: ${{ always() }} | |
with: | |
name: ubuntu-installer-artifacts | |
path: | | |
serverpackcreator-app/build | |
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` | |
ubuntu-02: | |
runs-on: ubuntu-latest | |
steps: | |
# GET THE LATEST CODE | |
- name: Checkout latest code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
# BUILD PROJECT AND PUBLISH | |
- name: Set up JDK 17 | |
id: java | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
check-latest: true | |
cache: 'gradle' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- uses: gradle/[email protected] | |
with: | |
gradle-version: wrapper | |
- name: Prepare | |
env: | |
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew :serverpackcreator-app:build :serverpackcreator-app:copyDependencies :serverpackcreator-app:copyJar :serverpackcreator-app:cleanTmpPackager --info --full-stacktrace | |
- name: Build Image | |
run: | | |
jpackage \ | |
--app-version "6.6.6" \ | |
--copyright "Copyright (C) 2023 Griefed" \ | |
--description "Create server packs from Minecraft Forge, Fabric, Quilt or LegacyFabric modpacks." \ | |
--dest serverpackcreator-app/build/dist \ | |
--icon serverpackcreator-app/jpackagerResources/app.png \ | |
--input serverpackcreator-app/build/jars \ | |
--java-options "-Dfile.encoding=UTF-8" \ | |
--java-options "-Dlog4j2.formatMsgNoLookups=true" \ | |
--main-class de.griefed.serverpackcreator.app.ServerPackCreatorKt \ | |
--main-jar serverpackcreator-app-dev-plain.jar \ | |
--name ServerPackCreator \ | |
--resource-dir serverpackcreator-app/jpackagerResources \ | |
--runtime-image ${{ steps.java.outputs.path }} \ | |
--temp serverpackcreator-app/build/tmp/jpackager \ | |
--type "app-image" \ | |
--vendor "griefed.de" \ | |
--verbose | |
- name: List | |
run: ls -ahl serverpackcreator-app/build/dist | |
- name: Create AppImage | |
run: | | |
mkdir -p serverpackcreator-app/build/dist/ServerPackCreator.AppDir/usr/share/applications && \ | |
mkdir -p serverpackcreator-app/build/dist/ServerPackCreator.AppDir/usr/icons/hicolor/512x512 && \ | |
mkdir -p serverpackcreator-app/build/dist/ServerPackCreator.AppDir/usr/icons/hicolor/scalable && \ | |
cp -rf serverpackcreator-app/build/dist/ServerPackCreator/* \ | |
serverpackcreator-app/build/dist/ServerPackCreator.AppDir && \ | |
cp serverpackcreator-app/jpackagerResources/ServerPackCreator.desktop \ | |
serverpackcreator-app/build/dist/ServerPackCreator.AppDir/usr/share/applications/ServerPackCreator.desktop && \ | |
cp serverpackcreator-app/jpackagerResources/serverpackcreator.png \ | |
serverpackcreator-app/build/dist/ServerPackCreator.AppDir/usr/icons/hicolor/512x512/ServerPackCreator.png && \ | |
cp serverpackcreator-app/jpackagerResources/serverpackcreator.svg \ | |
serverpackcreator-app/build/dist/ServerPackCreator.AppDir/usr/icons/hicolor/scalable/ServerPackCreator.svg && \ | |
cd serverpackcreator-app/build/dist/ServerPackCreator.AppDir && \ | |
ln -s bin/ServerPackCreator \ | |
AppRun && \ | |
ln -s usr/share/applications/ServerPackCreator.desktop \ | |
ServerPackCreator.desktop && \ | |
ln -s usr/icons/hicolor/512x512/ServerPackCreator.png \ | |
ServerPackCreator.png && \ | |
ln -s usr/icons/hicolor/scalable/ServerPackCreator.svg \ | |
ServerPackCreator.svg && \ | |
cd .. && \ | |
curl \ | |
-L https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage \ | |
-o appimagetool.AppImage && \ | |
chmod +x appimagetool.AppImage && \ | |
./appimagetool.AppImage --appimage-extract && \ | |
export PATH=./squashfs-root/usr/bin:${PATH} && \ | |
appimagetool \ | |
ServerPackCreator.AppDir \ | |
ServerPackCreator-Portable-Linux-x86_64.AppImage | |
# UPLOAD OS-SPECIFICS | |
- name: Upload | |
uses: actions/[email protected] | |
if: ${{ always() }} | |
with: | |
name: ubuntu-installer-artifacts | |
path: | | |
serverpackcreator-app/build/dist/ServerPackCreator-Portable-Linux-x86_64.AppImage | |
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` |