-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MILESTONE: automatic release and onlein publish CI added
- Loading branch information
Showing
4 changed files
with
84 additions
and
169 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,87 @@ | ||
name: PublishScriptSync | ||
|
||
# TODO: switch to this one | ||
# on: | ||
# release: | ||
# types: [published] | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
release: | ||
types: [published] | ||
|
||
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: | ||
|
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
This file was deleted.
Oops, something went wrong.
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