Update publish.yml (#107)

This commit is contained in:
Valtos
2024-02-21 14:07:26 +03:00
committed by GitHub
parent 4f3f8d950d
commit eef70d9717

View File

@@ -5,12 +5,10 @@ concurrency:
on:
workflow_dispatch:
schedule:
- cron: '0 10 * * *'
jobs:
build:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- name: Install dependencies
@@ -49,23 +47,27 @@ jobs:
mkdir "release/${{ github.sha }}"
mv release/*.zip "release/${{ github.sha }}"
- name: Upload files to centcomm
uses: appleboy/scp-action@master
- name: Upload files to hive
uses: burnett01/rsync-deployments@5.2
with:
host: centcomm.spacestation14.io
username: wizards-build-push
key: ${{ secrets.CENTCOMM_WIZARDS_BUILDS_PUSH_KEY }}
source: "release/${{ github.sha }}"
target: "/home/wizards-build-push/builds_dir/builds/"
strip_components: 1
switches: -avzr --ignore-existing
path: "release/${{ github.sha }}"
remote_path: ${{ secrets.BUILDS_PATH }}
remote_host: ${{ secrets.BUILDS_HOST }}
remote_port: ${{ secrets.BUILDS_PORT }}
remote_user: ${{ secrets.BUILDS_USERNAME }}
remote_key: ${{ secrets.BUILDS_SSH_KEY }}
remote_key_pass: ${{ secrets.BUILDS_SSH_KEY_PASS }}
- name: Update manifest JSON
uses: appleboy/ssh-action@master
with:
host: centcomm.spacestation14.io
username: wizards-build-push
key: ${{ secrets.CENTCOMM_WIZARDS_BUILDS_PUSH_KEY }}
script: /home/wizards-build-push/push.ps1 ${{ github.sha }}
host: ${{ secrets.BUILDS_HOST }}
port: ${{ secrets.BUILDS_PORT }}
username: ${{ secrets.BUILDS_USERNAME }}
key: ${{ secrets.BUILDS_SSH_KEY }}
passphrase: ${{ secrets.BUILDS_SSH_KEY_PASS }}
script: sh ~/ss14/anvil/cortice.sh ${{ github.sha }}
- name: Publish changelog (Discord)
run: Tools/actions_changelogs_since_last_run.py