Build and deploy #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |