Skip to content

Add extension script and CI #2

Add extension script and CI

Add extension script and CI #2

Workflow file for this run

name: CI
on:
push:
branches:
- "*"
tags:
- "*"
pull_request:
branches:
- "*"
jobs:
test:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- working-directory: WinUI3XamlPreview
run: ./scripts/ci
build:
runs-on: windows-2022
needs: ["test"]
if: startsWith(github.ref, 'refs/tags/v')
env:
VERSION: 0.1.0
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
steps:
- uses: actions/checkout@v3
- working-directory: WinUI3XamlPreview
run: |
./scripts/build -version $env:VERSION
./scripts/publish-nuget -version $env:VERSION
build-extension:
runs-on: windows-2022
needs: ["test"]
if: startsWith(github.ref, 'refs/tags/vs2022-v')
steps:
- uses: actions/checkout@v3
- uses: microsoft/[email protected]
- working-directory: extensions/WinUI3XamlPrevieVS2022
run: ./scripts/build-extension -config Release
- uses: cezarypiatek/[email protected]
with:
extension-file: './extensions/WinUI3XamlPrevieVS2022/WinUI3XamlPrevieVS2022/bin/Release/net480/WinUI3XamlPrevieVS2022.vsix'
publish-manifest-file: './extension/WinUI3XamlPrevieVS2022/vs-publish.json'
personal-access-code: ${{ secrets.VS_MARKETPLACE_API_KEY }}