Skip to content
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

Matti/test prerelease pipeline #2

Merged
merged 5 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 34 additions & 31 deletions .github/workflows/pre-release-robocorp-code.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
on:
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
description: 'Version'
required: true
name: Pre-release - Sema4.ai Code Extension
jobs:
Expand All @@ -11,114 +11,117 @@ jobs:
defaults:
run:
working-directory: ./sema4ai-code

strategy:
fail-fast: true

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Yarn install
run: yarn install

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install deps
run: pip install --upgrade pip fire poetry

- name: Update version
run: python -m dev set-version ${{ github.event.inputs.version }}

- name: Update vscode required version
run: python codegen/codegen_package.py
env:
PYTHONPATH: src

- name: Vendor sema4ai_ls_core
run: python -m dev vendor-robocorp-ls-core

- name: Fix README references
run: python -m dev fix-readme

- name: Generate LICENSE.md
run: python -m dev generate-license-file

- name: Install locally
working-directory: ./sema4ai-code
run: poetry install

- run: npm install -g vsce@2.15.0


# Platforms: win32-x64, win32-ia32, win32-arm64, linux-x64, linux-arm64, linux-armhf, alpine-x64, alpine-arm64, darwin-x64, darwin-arm64 and web.

# Deal with Windows --------------
- name: Download rcc for windows
run: python -m dev download-rcc win32

- run: vsce package --pre-release --target win32-x64 -o sema4ai-code-win32-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-win32-x64.vsix
path: ./sema4ai-code/sema4ai-code-win32-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-win32-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

# Deal with Linux --------------
- name: Download rcc for linux
run: python -m dev download-rcc linux

- run: vsce package --pre-release --target linux-x64 -o sema4ai-code-linux-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-linux-x64.vsix
path: ./sema4ai-code/sema4ai-code-linux-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-linux-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

# Deal with Darwin x64 --------------
- name: Download rcc for darwin
run: python -m dev download-rcc darwin

- run: vsce package --pre-release --target darwin-x64 -o sema4ai-code-darwin-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-darwin-x64.vsix
path: ./sema4ai-code/sema4ai-code-darwin-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-darwin-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

# Deal with Darwin arm64 --------------
- name: Download rcc for darwin
run: python -m dev download-rcc darwin

- run: vsce package --pre-release --target darwin-arm64 -o sema4ai-code-darwin-arm64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-darwin-arm64.vsix
path: ./sema4ai-code/sema4ai-code-darwin-arm64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-darwin-arm64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
56 changes: 28 additions & 28 deletions .github/workflows/release-robocorp-code-vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
defaults:
run:
working-directory: ./sema4ai-code

strategy:
fail-fast: true

Expand Down Expand Up @@ -39,90 +39,90 @@ jobs:
working-directory: ./sema4ai-code
run: poetry install
- run: npm install -g vsce@2.15.0

- name: Check tag version
run: python -m dev check-tag-version

# Deal with Windows --------------
- name: Download rcc for windows
run: python -m dev download-rcc win32

- run: vsce package --target win32-x64 -o sema4ai-code-win32-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-win32-x64.vsix
path: ./sema4ai-code/sema4ai-code-win32-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-win32-x64.vsix -p $VSCODE_VSCE_TOKEN
env:
VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
- name: Publish windows to open vsx marketplace
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

- name: Publish windows to open vsx marketplace
run: npx ovsx publish sema4ai-code-win32-x64.vsix -p $VSCODE_OPEN_VSX_TOKEN
env:
OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}
VSCODE_OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}

# Deal with Linux --------------
- name: Download rcc for linux
run: python -m dev download-rcc linux

- run: vsce package --target linux-x64 -o sema4ai-code-linux-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-linux-x64.vsix
path: ./sema4ai-code/sema4ai-code-linux-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-linux-x64.vsix -p $VSCODE_VSCE_TOKEN
env:
VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
- name: Publish linux to open vsx marketplace
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

- name: Publish linux to open vsx marketplace
run: npx ovsx publish sema4ai-code-linux-x64.vsix -p $VSCODE_OPEN_VSX_TOKEN
env:
OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}
VSCODE_OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}

# Deal with Darwin x64 --------------
- name: Download rcc for darwin
run: python -m dev download-rcc darwin

- run: vsce package --target darwin-x64 -o sema4ai-code-darwin-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-darwin-x64.vsix
path: ./sema4ai-code/sema4ai-code-darwin-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-darwin-x64.vsix -p $VSCODE_VSCE_TOKEN
env:
VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
- name: Publish darwin to open vsx marketplace
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

- name: Publish darwin to open vsx marketplace
run: npx ovsx publish sema4ai-code-darwin-x64.vsix -p $VSCODE_OPEN_VSX_TOKEN
env:
OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}
VSCODE_OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}

# Deal with Darwin arm64 --------------
- name: Download rcc for darwin
run: python -m dev download-rcc darwin

- run: vsce package --target darwin-arm64 -o sema4ai-code-darwin-arm64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-darwin-arm64.vsix
path: ./sema4ai-code/sema4ai-code-darwin-arm64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-darwin-arm64.vsix -p $VSCODE_VSCE_TOKEN
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
- name: Publish darwin to open vsx marketplace

- name: Publish darwin to open vsx marketplace
run: npx ovsx publish sema4ai-code-darwin-arm64.vsix -p $VSCODE_OPEN_VSX_TOKEN
env:
OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}
VSCODE_OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}
100 changes: 0 additions & 100 deletions README.md

This file was deleted.

Loading
Loading