fix yak build #3
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: Build and Release Yak | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '9.0.x' | |
- name: Build | |
run: dotnet build --configuration Release | |
# https://discourse.mcneel.com/t/github-action-to-yak/120815/3 | |
- name: Download Yak | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
run: curl -o yak.exe http://files.mcneel.com/yak/tools/latest/yak.exe | |
- name: Build Yak | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
run: ..\..\yak.exe build --platform win --version ${{ github.ref_name }} | |
# I prepopulated a manifest file and copied it next to the .gha | |
working-directory: bin/Release | |
- name: Push new version to YAK | |
run: | | |
$YAK_FILE=$(ls *.yak) | |
echo $YAK_FILE | |
..\..\yak.exe push $YAK_FILE | |
working-directory: bin/Release | |
# You should create a secret using the token from here: yak.exe login --ci | |
env: | |
YAK_TOKEN: ${{ secrets.YAK_TOKEN }} | |
# verify the package | |
# "C:\Program Files\Rhino 8\System\Yak.exe" search fesh | |