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