mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Prepare workflows for test publishes (#48)
This commit is contained in:
22
.github/workflows/publish.yml
vendored
22
.github/workflows/publish.yml
vendored
@@ -5,8 +5,8 @@ concurrency:
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 10 * * *'
|
||||
# schedule:
|
||||
# - cron: '0 10 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -45,20 +45,22 @@ jobs:
|
||||
- name: Upload files to centcomm
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
host: centcomm.spacestation14.io
|
||||
username: wizards-build-push
|
||||
key: ${{ secrets.CENTCOMM_WIZARDS_BUILDS_PUSH_KEY }}
|
||||
host: ${{ secrets.PUBLISH_HOST }}
|
||||
username: ${{ secrets.PUBLISH_USER }}
|
||||
key: ${{ secrets.PUBLISH_KEY }}
|
||||
port: ${{ secrets.PUBLISH_PORT }}
|
||||
source: "release/${{ github.sha }}"
|
||||
target: "/home/wizards-build-push/builds_dir/builds/"
|
||||
target: "/var/www/builds.delta-v.org/delta-v-rebase/builds/"
|
||||
strip_components: 1
|
||||
|
||||
- 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.PUBLISH_HOST }}
|
||||
username: ${{ secrets.PUBLISH_USER }}
|
||||
key: ${{ secrets.PUBLISH_KEY }}
|
||||
port: ${{ secrets.PUBLISH_PORT }}
|
||||
script: /home/${{ secrets.PUBLISH_USER }}/publish/rebasepush.psi ${{ github.sha }}
|
||||
|
||||
- name: Publish changelog (Discord)
|
||||
run: Tools/actions_changelogs_since_last_run.py
|
||||
|
||||
@@ -20,10 +20,10 @@ SERVER_FILES = [
|
||||
]
|
||||
|
||||
VERSION = os.environ['GITHUB_SHA']
|
||||
FORK_ID = "wizards"
|
||||
BUILD_URL = f"https://cdn.centcomm.spacestation14.com/builds/wizards/builds/{{FORK_VERSION}}/{FILE}"
|
||||
MANIFEST_URL = f"https://cdn.centcomm.spacestation14.com/cdn/version/{{FORK_VERSION}}/manifest"
|
||||
MANIFEST_DOWNLOAD_URL = f"https://cdn.centcomm.spacestation14.com/cdn/version/{{FORK_VERSION}}/download"
|
||||
FORK_ID = "deltav"
|
||||
BUILD_URL = f"https://builds.delta-v.org/{{FORK_ID}}/builds/{{FORK_VERSION}}/{FILE}"
|
||||
MANIFEST_URL = f"https://cdn.delta-v.org/version/{{FORK_VERSION}}/manifest"
|
||||
MANIFEST_DOWNLOAD_URL = f"https://cdn.delta-v.org/version/{{FORK_VERSION}}/download"
|
||||
|
||||
def main() -> None:
|
||||
client_file = os.path.join("release", FILE)
|
||||
|
||||
Reference in New Issue
Block a user