Skip to content

Update and rename node.js.yml to publish.yml #1

Update and rename node.js.yml to publish.yml

Update and rename node.js.yml to publish.yml #1

Workflow file for this run

name: Publish
on:
push:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Build & Set CNAME
run: |
cd CubicIDE-gui
npm i
npm run build
cd build
touch ./CNAME
echo "ide.xcore.tk" > CNAME
cd ..
cd ..
- name: Deploy
uses: crazy-max/[email protected]
with:
build_dir: CubicIDE-gui/build
target_branch: gh-pages
verbose: true
env:
GITHUB_TOKEN: ${{ secrets.D }}