Skip to content

WIP: testing publish release DEBUG #5

WIP: testing publish release DEBUG

WIP: testing publish release DEBUG #5

Workflow file for this run

name: PublishScriptSync
# TODO: switch to this one
# on:
# release:
# types: [published]
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_yak:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Python setup
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install invoke
- name: Install .NET Framework 4.8
uses: microsoft/[email protected]
- name: Run Invoke tasks
run: invoke yakerize
- name: Save artifact
uses: actions/upload-artifact@v2
with:
name: scriptsync_yak_package
path: yaker\build\*.yak
publish_yak:
needs: build_yak
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: scriptsync_yak_package
path: yaker\build
- name: Publish to Yak test server
run: |
$YAK_FILE=$(ls *.yak)
echo "Yak file: $YAK_FILE"
..\exec\Yak.exe push --source https://test.yak.rhino3d.com $YAK_FILE
working-directory: yaker\build
env:
YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
- name: Verify the Yak package
run: |
$NAME_PACKAGE=$(script-sync)
..\exec\Yak.exe search --source https://test.yak.rhino3d.com --all --prerelease $NAME_PACKAGE
working-directory: yaker\build
env:
YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}