You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
name: Patch
|
|
|
|
on: push # to debug
|
|
# on:
|
|
# push:
|
|
# tags:
|
|
# - '*.*.*'
|
|
|
|
jobs:
|
|
patch:
|
|
runs-on: windows-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build 5.x
|
|
run: |
|
|
$BUILD_DIR = "Sophia-ps5-"
|
|
if ($env:GITHUB_REF -eq "refs/heads/master") {
|
|
$BUILD_DIR += "master"
|
|
} else {
|
|
$BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’
|
|
}
|
|
# Get-ChildItem Env:
|
|
$ZIP="$BUILD_DIR.zip"
|
|
mkdir $BUILD_DIR
|
|
echo $BUILD_DIR
|
|
echo $ZIP
|
|
cp -R Sophia/* $BUILD_DIR
|
|
del -Force -Recurse "$BUILD_DIR/PowerShell 7.x"
|
|
iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe
|
|
Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP
|
|
- name: Upload to release
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: Sophia-*.zip
|
|
tag: ${{ github.ref }}
|
|
overwrite: true
|
|
asset_content_type: application/zip
|
|
file_glob: true
|
|
|