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

41 lines
1 KiB
YAML
Raw Normal View History

2021-01-06 23:50:37 +01:00
name: Build-Windows
on: workflow_dispatch
jobs:
2021-01-07 00:20:21 +01:00
windows:
2021-01-06 23:50:37 +01:00
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
2021-01-18 22:57:27 +01:00
- name: Replace token 1
2021-01-18 23:11:02 +01:00
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/server/services/telemetry/telemetry.go
2021-01-18 22:57:27 +01:00
- name: Replace token 2
2021-01-18 23:11:02 +01:00
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/server/services/telemetry/telemetry.go
2021-01-18 22:04:25 +01:00
2021-01-07 00:20:21 +01:00
- name: win-node-env
run: npm install -g win-node-env
2021-01-06 23:50:37 +01:00
- name: npm install
2021-01-07 01:09:36 +01:00
run: cd webapp; npm install --no-optional
2021-01-06 23:50:37 +01:00
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Build Windows app
run: make win-app
2021-01-19 23:10:14 +01:00
env:
BUILD_NUMBER: ${{ github.run_id }}
2021-01-06 23:50:37 +01:00
- name: Upload app package
uses: actions/upload-artifact@v1
with:
2021-01-26 19:33:42 +01:00
name: focalboard-win.zip
path: ${{ github.workspace }}/win/dist/focalboard-win.zip