-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update release pipeline #5231
Update release pipeline #5231
Conversation
|
||
- name: insiders channel | ||
# Scheduled builds will publish Insider builds. | ||
if: github.event_name == 'schedule' && github.ref == 'refs/heads/mains' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We push insiders to marketplace only during the nightly run
run: | | ||
echo "vsix_name=ms-toolsai-jupyter-release.vsix" >> $GITHUB_ENV | ||
echo "test_matrix_os=[\"ubuntu-latest\"]" >> $GITHUB_ENV | ||
|
||
- name: release channel | ||
# All pushes to release can push to marketplace place with the words `release` `publish` in commit. | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/heads/release') && contains(github.event.head_commit.message, 'release') && contains(github.event.head_commit.message, 'publish') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We push insiders to marketplace only during push to release & commits has special comments
.github/workflows/build-test.yml
Outdated
name: ${{needs.pick_environment.outputs.vsix_name}} | ||
|
||
# - name: Publish | ||
# run: vsce publish --packagePath ${{needs.pick_environment.outputs.vsix_name}} --pat ${{secrets.VSCE_TOKEN}} --noVerify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once reviewed, i'll enable this, only way to find out is to push a VSIX for insiders and test.
name: ${{needs.pick_environment.outputs.vsix_name}} | ||
|
||
- name: Publish | ||
run: vsce publish --packagePath ${{needs.pick_environment.outputs.vsix_name}} --pat ${{secrets.VSCE_TOKEN}} --noVerify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Publish insider/release
run: vsce publish --packagePath ${{needs.pick_environment.outputs.vsix_name}} --pat ${{secrets.VSCE_TOKEN}} --noVerify | ||
|
||
- name: Extract Extension | ||
if: needs.pick_environment.outputs.release_channel == 'stable' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the rest only applies when we generate stable releases
.github/workflows/build-test.yml
Outdated
@@ -19,8 +19,9 @@ on: | |||
- 'release' | |||
- 'release/*' | |||
- 'release-*' | |||
schedule: | |||
- cron: "0 9 * * *" 9am UTC (2am PDT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nightly job
if: github.repository == 'microsoft/vscode-jupyter' && (needs.pick_environment.outputs.release_channel == 'insider' || needs.pick_environment.outputs.release_channel == 'stable') | ||
needs: [pick_environment, build-vsix, lint, ts_tests, smoke-tests] | ||
environment: | ||
name: ${{needs.pick_environment.outputs.release_channel}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using Github Environments Releases
I have created two environments insider
& stable
.
For Insiders, they will get published directly.
For stable
environment, this job will NOT run, until it is approved. there is a list of approvers that we can add (for now I had only added myself, to ensure this works properly, then we can add everyone else).
See here for more info:
https://docs.github.com/en/actions/reference/environments
https://docs.github.com/en/actions/managing-workflow-runs/reviewing-deployments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, I will add @IanMatthewHuff as he's going to be doing the release this time
* main: (33 commits) Fix problems found while debugging synapse connections (microsoft#5297) Ask user to enable CDN support to render IPyWidget (microsoft#5282) Remove jupyter.useNotebookEditor (microsoft#5249) Fixes to creating and re-opning non-python notebooks (microsoft#5271) Update main part 2 (microsoft#5296) Fix problem with run selection in an editor (microsoft#5298) Avoid calling `reveal` if a webview is already active or visible (microsoft#5276) Remove default value from setting description (microsoft#5288) Use 'learn more' clickable link for setting (microsoft#5285) update to next version number (microsoft#5275) Fix display of non-numeric DataFrame index columns (microsoft#5254) Use resolveKernel instead of resolveDocument which is due for deprecation and re-enable and update associated tests. (microsoft#5255) Display survey only when dealing with Jupyter Notebooks (microsoft#5248) Remove java kernel tests from Notebooks (microsoft#5247) Fix scheduled build pipeline (microsoft#5245) Add string argument to jupyter.execSelectionInteractive for extensibility (microsoft#5053) Finally to make sure that we claen up our status message (microsoft#5239) Updates to Notebook kernel execution API (microsoft#5241) Changes to execution of Native Notebooks (changes in Proposed API) (microsoft#5180) Update release pipeline (microsoft#5231) ...
For #4961