Skip to content

Commit

Permalink
WIP: testing release on yak test server
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 committed Apr 16, 2024
1 parent cb4e7d0 commit cf4553e
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
58 changes: 58 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
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: 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 }}


1 change: 0 additions & 1 deletion .github/workflows/yakbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
- name: Run Invoke tasks
run: invoke yakerize

#store the artifact .yak contained
- name: Save artifact
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit cf4553e

Please sign in to comment.