diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dfdbbed..538fc92 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,11 +15,12 @@ jobs: runs-on: windows-2022 steps: - uses: actions/checkout@v3 - - run: ./WinUI3XamlPreview/scripts/ci + - working-directory: WinUI3XamlPreview + run: ./scripts/ci build: runs-on: windows-2022 needs: ["test"] - if: startsWith(github.ref, 'refs/tags') + if: startsWith(github.ref, 'refs/tags/v') env: VERSION: 0.1.0 NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} @@ -29,3 +30,17 @@ jobs: 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/setup-msbuild@v1.1 + - working-directory: extensions/WinUI3XamlPrevieVS2022 + run: ./scripts/build-extension -config Release + - uses: cezarypiatek/VsixPublisherAction@0.2 + 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 }} \ No newline at end of file diff --git a/README.md b/README.md index f10f69a..69f309a 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,21 @@ # WinUI 3 Xaml Preview (WinUI3XP) [![nuget](https://img.shields.io/nuget/v/WinUI3XamlPreview)](https://www.nuget.org/packages/WinUI3XamlPreview/) +[![VS2022](https://img.shields.io/visual-studio-marketplace/v/Roxk.winui3xamlpreview.svg?label=Visual%20Studio%202022%20(Preview))](https://marketplace.visualstudio.com/items?itemName=Roxk.winui3xamlpreview) [![CI](https://github.com/roxk/WinUI3XamlPreview/actions/workflows/ci.yaml/badge.svg)](https://github.com/roxk/WinUI3XamlPreview/actions/workflows/ci.yaml) +![Image showcasing how to use WinUI 3 Xaml Preview](hero-banner.gif) + WinUI3 Xaml Preview allows you to see a a live preview of your UI while authoring XAML. It is fast, reliable, and comes with basic tools like scaling and size configuration. -Featurs: +## Features: - Interactive preview of your XAML code (powered by `XamlReader`) - Integration with VS2022 17.9+ - Reload via opening/saving/switching - Supports your own user control and custom control - Supports controls in dependency (i.e. libraries) -Limitation: +## Limitation: - Require building the project once before use - Packaged apps require launching once after build, before use - Require a few lines of setup diff --git a/WinUI3XamlPreview/TestPackaged/BlankPage.xaml b/WinUI3XamlPreview/TestPackaged/BlankPage.xaml index a8272a3..0b80398 100644 --- a/WinUI3XamlPreview/TestPackaged/BlankPage.xaml +++ b/WinUI3XamlPreview/TestPackaged/BlankPage.xaml @@ -11,6 +11,6 @@