Skip to content

Build and deploy

Build and deploy #23

Workflow file for this run

name: Deploy windows version
on:
push:
branches:
- main
workflow_dispatch:
inputs:
tags:
description: 'Deploy workflow from trigger'
jobs:
build:
runs-on: windows-latest
steps:
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Clone & Deploy asssets
env:
GH_REPONAME: ${{ secrets.GH_REPONAME }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_USERNAME: ${{ secrets.GH_USERNAME }}
run: |
git clone --depth 1 https://${{ secrets.GITLAB_USER }}:${{ secrets.GITLAB_TOKEN }}@gitlab.com/oktoworkspace/application.git
cd application
git checkout master
npm install
npm run build:win
node ./github-windows-upload.js