Skip to content

Commit

Permalink
WIP: DEBUG CI
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 committed Apr 17, 2024
1 parent e960db9 commit 3642a92
Showing 1 changed file with 71 additions and 71 deletions.
142 changes: 71 additions & 71 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,82 +13,82 @@ on:

jobs:
########################### yak ############################
build_yak:
runs-on: windows-latest
# build_yak:
# runs-on: windows-latest

steps:
- uses: actions/checkout@v2
# steps:
# - uses: actions/checkout@v2

- name: Python setup
uses: actions/setup-python@v2
with:
python-version: '3.x'
# - 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 dependencies
# run: |
# python -m pip install --upgrade pip
# pip install invoke

# install dotnet for building the RhinoCs plugin
- name: Install .NET Framework 4.8
uses: microsoft/[email protected]
# # install dotnet for building the RhinoCs plugin
# - name: Install .NET Framework 4.8
# uses: microsoft/[email protected]

- name: Run Invoke Yakerizer task
run: invoke yakerize
# - name: Run Invoke Yakerizer task
# 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: 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

# before run this get a token from your local machine with `yak.exe login --ci`
# # this is a dummy test
# - 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 }}
# continue-on-error: true
# # this is also a dummy test
# - name: Verify the Yak test package
# run: |
# ..\exec\Yak.exe search --source https://test.yak.rhino3d.com --all --prerelease script-sync
# working-directory: yaker\build
# env:
# YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
# real release
- name: Publish to Yak test server
run: |
$YAK_FILE=$(ls *.yak)
echo "Yak file: $YAK_FILE"
..\exec\Yak.exe push $YAK_FILE
working-directory: yaker\build
env:
YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
# check the real release
- name: Verify the Yak test package
run: |
..\exec\Yak.exe search --all --prerelease script-sync
working-directory: yaker\build
env:
YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
# # before run this get a token from your local machine with `yak.exe login --ci`
# # # this is a dummy test
# # - 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 }}
# # continue-on-error: true
# # # this is also a dummy test
# # - name: Verify the Yak test package
# # run: |
# # ..\exec\Yak.exe search --source https://test.yak.rhino3d.com --all --prerelease script-sync
# # working-directory: yaker\build
# # env:
# # YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
# # real release
# - name: Publish to Yak test server
# run: |
# $YAK_FILE=$(ls *.yak)
# echo "Yak file: $YAK_FILE"
# ..\exec\Yak.exe push $YAK_FILE
# working-directory: yaker\build
# env:
# YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}
# # check the real release
# - name: Verify the Yak test package
# run: |
# ..\exec\Yak.exe search --all --prerelease script-sync
# working-directory: yaker\build
# env:
# YAK_TOKEN: ${{ secrets.YAK_IBOIS_TOKEN }}

########################### vsix ############################
build_vsix:
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:

publish_vsix:
needs: build_vsix
runs-on: ubuntu-latest
runs-on: ubuntu-latest # windows-latest

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Publish to VSCode Marketplace
run: |
vsce publish -p ${{ secrets.AZURE_OP_TOKEN }}
working-directory: VSCode\scriptsync
# working-directory: VSCode\scriptsync

- name: Verify the VSCode Marketplace package
run: |
Expand Down

0 comments on commit 3642a92

Please sign in to comment.