Is there a way to publish from a github action to a Yak server? I see you need the yak.exe to do the publishing, could we get this without installing Rhino?
http://files.mcneel.com/yak/tools/latest/yak.exe
Run yak.exe login --ci
to get an auth token and set this in your build’s environment variables as YAK_TOKEN
.
2 Likes
Thanks @will ! Finally got around trying this and it works after a few tries!
I am leaving here a partial action, that someone might find useful!
- name: Download Yak
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: curl -o <path_to_yak_>/yak.exe http://files.mcneel.com/yak/tools/latest/yak.exe
- name: Build Yak
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: ..\..\yak.exe build
# I prepopulated a manifest file and copied it next to the .gha
working-directory: <path_to_GHA_and_manifest>
- name: Push new version to YAK
run: |
$YAK_FILE=$(ls *.yak)
echo $YAK_FILE
..\..\yak.exe push $YAK_FILE
working-directory: <path_to_GHA_and_manifest>
# You should create a secret using the token from here: yak.exe login --ci
env:
YAK_TOKEN: ${{ secrets.YAK_TOKEN }}
5 Likes