Skip to content
Snippets Groups Projects
Commit 85f4941a authored by Griefed's avatar Griefed :joystick:
Browse files

ci: Configure install4j updater. Upload release assets to download server.

parent e24ddefd
No related branches found
No related tags found
1 merge request!599ci: Configure install4j updater. Upload release assets to download server.
......@@ -64,4 +64,30 @@ jobs:
./media/*.sh
./media/*.exe
./serverpackcreator-app/build/libs/serverpackcreator-app-dev.jar
./serverpackcreator-plugin-example/build/libs/serverpackcreator-plugin-example-dev.jar
\ No newline at end of file
./serverpackcreator-plugin-example/build/libs/serverpackcreator-plugin-example-dev.jar
- name: Collect files
run: |
mkdir continuous
cp serverpackcreator-api/build/libs/*.jar continuous/
cp serverpackcreator-app/build/libs/*.jar continuous/
cp serverpackcreator-plugin-example/build/libs/*.jar continuous/
cp media/* continuous/
- name: Cleanup continuous
id: action-ssh
uses: tiyee/action-ssh@v1.0.1
with:
host: ${{ secrets.SPCUPLOAD_HOST }}
username: ${{ secrets.SPCUPLOAD_USERNAME }}
privateKey: ${{ secrets.SPCUPLOAD_KEY }}
command: 'rm -rf ~/spc/continuous'
- name: Copy folder content recursively to remote
uses: nogsantos/scp-deploy@master
with:
src: ./continuous
host: ${{ secrets.SPCUPLOAD_HOST }}
remote: "${{ secrets.SPCUPLOAD_TARGET }}"
user: ${{ secrets.SPCUPLOAD_USERNAME }}
key: ${{ secrets.SPCUPLOAD_KEY }}
......@@ -101,6 +101,41 @@ jobs:
serverpackcreator-plugin-example/build/libs/ServerPackCreator-${{ needs.preparations.outputs.version }}-Example-Plugin.jar
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
- name: Collect files
run: |
mkdir ${{ needs.preparations.outputs.version }}
cp serverpackcreator-api/build/libs/*.jar ${{ needs.preparations.outputs.version }}/
cp serverpackcreator-app/build/libs/*.jar ${{ needs.preparations.outputs.version }}/
cp serverpackcreator-plugin-example/build/libs/*.jar ${{ needs.preparations.outputs.version }}/
cp media/* ${{ needs.preparations.outputs.version }}/
- name: Upload release to version-dir
uses: nogsantos/scp-deploy@master
with:
src: ./${{ needs.preparations.outputs.version }}
host: ${{ secrets.SPCUPLOAD_HOST }}
remote: "${{ secrets.SPCUPLOAD_TARGET }}"
user: ${{ secrets.SPCUPLOAD_USERNAME }}
key: ${{ secrets.SPCUPLOAD_KEY }}
- name: Cleanup latest
id: action-ssh
uses: tiyee/action-ssh@v1.0.1
with:
host: ${{ secrets.SPCUPLOAD_HOST }}
username: ${{ secrets.SPCUPLOAD_USERNAME }}
privateKey: ${{ secrets.SPCUPLOAD_KEY }}
command: 'rm -f ${{ secrets.SPCUPLOAD_TARGET }}/latest/*'
- name: Upload release to latest-dir
uses: nogsantos/scp-deploy@master
with:
src: ./${{ needs.preparations.outputs.version }}/*
host: ${{ secrets.SPCUPLOAD_HOST }}
remote: "${{ secrets.SPCUPLOAD_TARGET }}/latest"
user: ${{ secrets.SPCUPLOAD_USERNAME }}
key: ${{ secrets.SPCUPLOAD_KEY }}
release:
name: "Release"
if: ${{ always() }}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment