Skip to content

misc makefile updates #101

misc makefile updates

misc makefile updates #101

Workflow file for this run

name: Deploy UI
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy configurator
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Prepare build env
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends \
yarn
- name: Build and deploy configurator
run: |
git config --global user.name "webui_bot"
git config --global user.email "[email protected]"
make release
git checkout gh-pages
rm -rf _assets/* index.html
mv dist/* .
git add index.html _assets*
git commit --allow-empty -m "update webui"
git push https://github.com/shanteacontrols/OpenDeckUI gh-pages
release:
name: Create new release
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Prepare build env
run: |
npm install -g electron-packager
sudo apt-get update
sudo apt-get install --no-install-recommends \
yarn \
zip \
wine
- name: Build
run: |
make release
make pkg PLATFORM=linux
make pkg PLATFORM=darwin
make pkg PLATFORM=win32
- name: Generate new version number
run: echo "::set-output name=version::$(date +%Y%m%d%H%M)"
id: version
- name: Publish new release
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
hub release create $(find ./build -type f -name "*.zip" -printf "-a %p ") -m "${{ steps.version.outputs.version }}" "${{ steps.version.outputs.version }}"