From c3f2820377d0e2557e874e64340444f339fc504d Mon Sep 17 00:00:00 2001 From: NullClock <146401816+NullClock@users.noreply.github.com> Date: Wed, 27 Dec 2023 01:50:45 -0500 Subject: [PATCH] Update and rename node.js.yml to publish.yml --- .github/workflows/node.js.yml | 22 ---------------------- .github/workflows/publish.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/node.js.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index 9b8d8242b7b..00000000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Node.js CI - -on: - push: - branches: [ develop ] - pull_request: - 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: 10.x - - run: npm ci - - run: npm run build - - run: npm run test:unit diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000000..d119f10327e --- /dev/null +++ b/.github/workflows/publish.yml @@ -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/ghaction-github-pages@v2.6.0 + with: + build_dir: CubicIDE-gui/build + target_branch: gh-pages + verbose: true + env: + GITHUB_TOKEN: ${{ secrets.D }}