Skip to content

1.6.7.2

1.6.7.2 #9

Workflow file for this run

name: Push to Yak on Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
env:
YAK_TOKEN: ${{ secrets.YAK_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
ref: yak
- name: Run a multi-line script
run: |
$response=curl.exe -s https://api.github.com/repos/lin-ycv/RobotsExtended/releases/latest
$browser=($response | select-string "browser_").Line
$url=$browser.Split("`"")[3]
Invoke-WebRequest $url -OutFile re.gha
Invoke-WebRequest https://rawcdn.githack.com/lin-ycv/RobotsExtended/de8699c4baea24a4dfe342a0cf84808f4b13f79b/Resources/iconRobot.png -OutFile icon.png
robocopy /mov . .\yakPackage
curl https://files.mcneel.com/yak/tools/latest/yak.exe -o yak.exe
cd yakPackage
..\yak.exe build --platform 'any'
$YAK_FILENAME = dir *.yak
$name = $YAK_FileNAME.name.Split("-")
$name = $name[0]+"-"+$name[1]+"-any-any.yak"
Rename-Item $YAK_FileNAME.name $name
..\yak.exe push $name