mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-09 08:19:15 +00:00
release windows
This commit is contained in:
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# Pattern matched against refs/tags
|
# Pattern matched against refs/tags
|
||||||
tags:
|
tags:
|
||||||
# Push events to every tag not containing /
|
# Push events to every tag not containing /
|
||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
buildwin:
|
buildwin:
|
||||||
# The type of runner that the job will run on
|
# The type of runner that the job will run on
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
env:
|
||||||
CI: ''
|
CI: ''
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
@@ -31,15 +31,15 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: '14.x'
|
node-version: '14.x'
|
||||||
|
|
||||||
# install and build react
|
# install and build react
|
||||||
- name: Install React dependencies
|
- name: Install React dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
working-directory: ./client
|
working-directory: ./client
|
||||||
- name: Build React App
|
- name: Build React App
|
||||||
run: yarn build
|
run: yarn build
|
||||||
working-directory: ./client
|
working-directory: ./client
|
||||||
|
|
||||||
# install and build electron
|
# install and build electron
|
||||||
- name: Install Electron + nodejs dependencies
|
- name: Install Electron + nodejs dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
@@ -47,7 +47,7 @@ jobs:
|
|||||||
- name: Build Electron App
|
- name: Build Electron App
|
||||||
run: yarn dist-win
|
run: yarn dist-win
|
||||||
working-directory: ./server
|
working-directory: ./server
|
||||||
|
|
||||||
# release
|
# release
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
@@ -57,42 +57,42 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# build a file for mac
|
# build a file for mac
|
||||||
buildmac:
|
# buildmac:
|
||||||
# The type of runner that the job will run on
|
# The type of runner that the job will run on
|
||||||
runs-on: macOS-latest
|
# runs-on: macOS-latest
|
||||||
env:
|
# env:
|
||||||
CI: ''
|
# CI: ''
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
# steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# - name: Use Node.js
|
||||||
|
# uses: actions/setup-node@v1
|
||||||
|
# with:
|
||||||
|
# node-version: '14.x'
|
||||||
|
|
||||||
|
# install and build react
|
||||||
|
# - name: Install React dependencies
|
||||||
|
# run: yarn install
|
||||||
|
# working-directory: ./client
|
||||||
|
# - name: Build React App
|
||||||
|
# run: yarn build
|
||||||
|
# working-directory: ./client
|
||||||
|
|
||||||
- name: Use Node.js
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: '14.x'
|
|
||||||
|
|
||||||
# install and build react
|
|
||||||
- name: Install React dependencies
|
|
||||||
run: yarn install
|
|
||||||
working-directory: ./client
|
|
||||||
- name: Build React App
|
|
||||||
run: yarn build
|
|
||||||
working-directory: ./client
|
|
||||||
|
|
||||||
# install and build electron
|
# install and build electron
|
||||||
- name: Install Electron + nodejs dependencies
|
# - name: Install Electron + nodejs dependencies
|
||||||
run: yarn install
|
# run: yarn install
|
||||||
working-directory: ./server
|
# working-directory: ./server
|
||||||
- name: Build Electron App
|
# - name: Build Electron App
|
||||||
run: yarn dist-win
|
# run: yarn dist-win
|
||||||
working-directory: ./server
|
# working-directory: ./server
|
||||||
|
|
||||||
# release
|
# release
|
||||||
- name: Release
|
# - name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
# uses: softprops/action-gh-release@v1
|
||||||
with:
|
# with:
|
||||||
files: ./server/dist/ontime-macOS.dmg
|
# files: ./server/dist/ontime-macOS.dmg
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user