Skip to content

added "open in new window" action #18

added "open in new window" action

added "open in new window" action #18

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
env:
PLUGIN_NAME: EdgeFavorite
jobs:
build:
strategy:
matrix:
platform: [x64, ARM64]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Read version
run: |
[xml]$xml = Get-Content -Path Directory.Build.Props
echo "PLUGIN_VERSION=$($xml.Project.PropertyGroup.Version)" >> $env:GITHUB_ENV
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build Community.PowerToys.Run.Plugin.EdgeFavorite.sln --configuration Release /p:Platform=${{matrix.platform}} /p:EnableWindowsTargeting=true
- name: Test
if: ${{matrix.platform == 'x64'}}
run: dotnet test Community.PowerToys.Run.Plugin.EdgeFavorite.sln --no-build --verbosity normal --configuration Release /p:Platform=${{matrix.platform}}
- name: Prepare artifact
run: |
Remove-Item -Path Community.PowerToys.Run.Plugin.EdgeFavorite/bin/* -Recurse -Include *.xml, *.pdb, PowerToys.*, Wox.*
Rename-Item -Path Community.PowerToys.Run.Plugin.EdgeFavorite/bin/${{matrix.platform}}/Release -NewName $env:PLUGIN_NAME
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{env.PLUGIN_NAME}}-${{env.PLUGIN_VERSION}}-${{matrix.platform}}
path: Community.PowerToys.Run.Plugin.EdgeFavorite/bin/${{matrix.platform}}/*