2021-03-01 21:46:35 +02:00
|
|
|
name: Build-Windows-WPF
|
|
|
|
|
|
|
|
on: workflow_dispatch
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
windows:
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-09-01 23:53:27 +02:00
|
|
|
- name: Replace token 1 server
|
2021-03-01 21:46:35 +02:00
|
|
|
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/server/services/telemetry/telemetry.go
|
|
|
|
|
2021-09-01 23:53:27 +02:00
|
|
|
- name: Replace token 1 webapp
|
|
|
|
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/mattermost-plugin/webapp/src/index.tsx
|
|
|
|
|
|
|
|
- name: Replace token 2 server
|
2021-03-01 21:46:35 +02:00
|
|
|
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/server/services/telemetry/telemetry.go
|
|
|
|
|
2021-09-01 23:53:27 +02:00
|
|
|
- name: Replace token 2 webapp
|
|
|
|
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/mattermost-plugin/webapp/src/index.tsx
|
|
|
|
|
2021-03-01 21:55:54 +02:00
|
|
|
- name: Add msbuild to PATH
|
|
|
|
uses: microsoft/setup-msbuild@v1.0.2
|
|
|
|
|
2021-03-01 21:46:35 +02:00
|
|
|
- name: npm install
|
|
|
|
run: cd webapp; npm install --no-optional
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-05-26 12:34:42 +02:00
|
|
|
go-version: 1.16
|
2021-03-01 21:46:35 +02:00
|
|
|
|
2021-05-25 11:56:20 +02:00
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 16.1.0
|
|
|
|
|
2021-03-01 22:22:07 +02:00
|
|
|
- name: Setup NuGet
|
2021-03-01 22:17:57 +02:00
|
|
|
uses: nuget/setup-nuget@v1
|
2021-03-01 22:14:56 +02:00
|
|
|
with:
|
|
|
|
nuget-version: '5.x'
|
2021-03-01 22:22:07 +02:00
|
|
|
|
|
|
|
- name: NuGet Restore
|
2021-03-01 22:14:56 +02:00
|
|
|
run: nuget restore win-wpf\Focalboard.sln
|
|
|
|
|
|
|
|
- name: Build Windows WPF app
|
2021-03-01 21:46:35 +02: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
|