encoders: rename note type #120
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 UI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Deploy configurator | |
runs-on: ubuntu-22.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 "2544094+webui_bot@users.noreply.github.com" | |
make prod | |
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-22.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 \ | |
hub | |
- name: Build | |
run: | | |
make prod | |
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 }}" |