Version: 236.0.0 #984
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Client Build | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Parse version | |
id: parse_version | |
shell: pwsh | |
run: | | |
$ver = [regex]::Match($env:GITHUB_REF, "refs/tags/v?(.+)").Groups[1].Value | |
echo ("::set-output name=version::{0}" -f $ver) | |
- uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: Setup .NET Core | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 8.0.x | |
- name: Package client | |
run: Tools/package_client_build.py -p windows mac linux | |
- name: Shuffle files around | |
run: | | |
mkdir "release/${{ steps.parse_version.outputs.version }}" | |
mv release/*.zip "release/${{ steps.parse_version.outputs.version }}" | |
- name: Upload files to Suns | |
uses: appleboy/scp-action@master | |
with: | |
host: suns.spacestation14.com | |
username: robust-build-push | |
key: ${{ secrets.CENTCOMM_ROBUST_BUILDS_PUSH_KEY }} | |
source: "release/${{ steps.parse_version.outputs.version }}" | |
target: "/var/lib/robust-builds/builds/" | |
strip_components: 1 | |
- name: Update manifest JSON | |
uses: appleboy/ssh-action@master | |
with: | |
host: suns.spacestation14.com | |
username: robust-build-push | |
key: ${{ secrets.CENTCOMM_ROBUST_BUILDS_PUSH_KEY }} | |
script: /home/robust-build-push/push.ps1 ${{ steps.parse_version.outputs.version }} | |