focalboard/.github/workflows/build-win-wpf.yml

52 lines
1.3 KiB
YAML
Raw Normal View History

2021-03-01 20:46:35 +01:00
name: Build-Windows-WPF
on: workflow_dispatch
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Replace token 1
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/server/services/telemetry/telemetry.go
- name: Replace token 2
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/server/services/telemetry/telemetry.go
2021-03-01 20:55:54 +01:00
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
2021-03-01 20:46:35 +01:00
- name: win-node-env
run: npm install -g win-node-env
- name: npm install
run: cd webapp; npm install --no-optional
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
2021-03-01 21:22:07 +01:00
- name: Setup NuGet
2021-03-01 21:17:57 +01:00
uses: nuget/setup-nuget@v1
2021-03-01 21:14:56 +01:00
with:
nuget-version: '5.x'
2021-03-01 21:22:07 +01:00
- name: NuGet Restore
2021-03-01 21:14:56 +01:00
run: nuget restore win-wpf\Focalboard.sln
- name: Build Windows WPF app
2021-03-01 20:46:35 +01:00
run: make win-wpf-app
env:
BUILD_NUMBER: ${{ github.run_id }}
- name: Upload app package
uses: actions/upload-artifact@v1
with:
name: focalboard.msix
path: ${{ github.workspace }}/win-wpf/focalboard.msix