From 3049f83ba24e8d234c92ceafba7bf06dbf7c8cc6 Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 13 Dec 2021 03:16:57 -0500 Subject: [PATCH] Update build --- .github/workflows/build.yml | 34 +++++++++++++++++++++++++ .github/workflows/deploy.yml | 49 ------------------------------------ 2 files changed, 34 insertions(+), 49 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..04930f22 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build + +on: + push: + branches: [dev] + +jobs: + build: + runs-on: dedicated-server + strategy: + matrix: + node-version: [16.x] + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + - name: Install dependencies + run: | + yarn remove @nitrots/nitro-renderer + yarn add git+https://git@git.krews.org/nitro/nitro-renderer#dev + yarn install + - name: Build Nitro + run: | + yarn build + - name: Archive Artifacts + uses: actions/upload-artifact@v2 + with: + path: | + build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 44ef9068..00000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Deploy Bundle@dev - -on: - push: - branches: [ dev ] - -jobs: - build: - - runs-on: self-hosted - strategy: - matrix: - node-version: [14.x] - - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: '~/.npm' - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - name: Install dependencies - run: | - npm uninstall @nitrots/nitro-renderer - npm install git+https://git@git.krews.org/nitro/nitro-renderer#dev - - name: Build Nitro - run: | - npm run build - - name: Archive Artifacts - uses: actions/upload-artifact@v2 - with: - path: | - build - - name: Deploy Artifacts - uses: easingthemes/ssh-deploy@main - env: - REMOTE_HOST: ${{ secrets.HOST }} - REMOTE_PORT: ${{ secrets.PORT }} - REMOTE_USER: ${{ secrets.USERNAME }} - SSH_PRIVATE_KEY: ${{ secrets.SSHKEY }} - SOURCE: "build/" - TARGET: ${{ secrets.TARGET }}