Skip to content

update for latest GHS #127

update for latest GHS

update for latest GHS #127

Workflow file for this run

name: "Build and deploy release"
on:
workflow_dispatch:
push:
tags:
- "v*"
- "!v*-*"
jobs:
build_public:
name: Build and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "adopt"
- name: Build with Maven
run: mvn --batch-mode --update-snapshots clean package -P db-postgresql,melody
- uses: mdallasanta/[email protected]
with:
local: "./target/ghs-server-${{github.ref_name}}-postgresql.jar"
remote: "~/ghs-server.jar"
host: ${{secrets.HOST}}
port: ${{secrets.PORT}}
user: ${{secrets.USER}}
key: ${{secrets.KEY}}
pre_upload: sudo systemctl stop ghs-server.service
post_upload: sudo systemctl start ghs-server.service
ssh_options: -o StrictHostKeyChecking=no