Script to setup Windows 10 1903
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.

52 lines
1.5 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
4 years ago
run: |
$BUILD_DIR = "Sophia-"
4 years ago
if ($env:GITHUB_REF -eq "refs/heads/master") {
4 years ago
$BUILD_DIR += "master"
4 years ago
} else {
4 years ago
$BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’
4 years ago
}
4 years ago
# Get-ChildItem Env:
4 years ago
$ZIP="$BUILD_DIR.zip"
mkdir $BUILD_DIR
4 years ago
echo $BUILD_DIR
4 years ago
echo $ZIP
cp -R Sophia/* $BUILD_DIR
del -Force -Recurse "$BUILD_DIR/PowerShell 7.x"
4 years ago
# gci -Recurse $BUILD_DIR | select FullName
iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe
4 years ago
Compress-Archive -Path $BUILD_DIR -DestinationPath "$ZIP.zip"
4 years ago
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true
- name: Upload binaries 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
4 years ago
file_glob: true