Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegiacometti committed Sep 9, 2023
1 parent 45fd811 commit 810f837
Show file tree
Hide file tree
Showing 23 changed files with 719 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build

on:
workflow_dispatch:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

env:
PLUGIN_NAME: DevToys

jobs:
build:
strategy:
matrix:
platform: [x64, ARM64]

runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- 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@v3
with:
dotnet-version: 7.0.x

- name: Build
run: dotnet build Community.PowerToys.Run.Plugin.DevToys.sln --configuration Release /p:Platform=${{matrix.platform}} /p:EnableWindowsTargeting=true

- name: Prepare artifact
run: |
Remove-Item -Path Community.PowerToys.Run.Plugin.DevToys\bin\* -Recurse -Include *.xml, *.pdb, PowerToys.*, Wox.*
Rename-Item -Path Community.PowerToys.Run.Plugin.DevToys\bin\${{matrix.platform}}\Release -NewName $env:PLUGIN_NAME
Compress-Archive -Path Community.PowerToys.Run.Plugin.DevToys\bin\${{matrix.platform}}\$env:PLUGIN_NAME -DestinationPath "${{env.PLUGIN_NAME}}-${{env.PLUGIN_VERSION}}-${{matrix.platform}}.zip"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{env.PLUGIN_NAME}}-${{env.PLUGIN_VERSION}}
path: "**/*.zip"
Loading

0 comments on commit 810f837

Please sign in to comment.