Skip to content

Commit

Permalink
Update and rename node.js.yml to publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NullClock authored Dec 27, 2023
1 parent b476ca7 commit c3f2820
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/node.js.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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 }}

0 comments on commit c3f2820

Please sign in to comment.