From f76428e8f73522cf5d85735e2469213aaf233afc Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 16 Sep 2021 01:42:56 -0400 Subject: [PATCH] Test deploy --- .github/workflows/deploy.yml | 40 ++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1a78a89b..15dedca3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,16 +10,30 @@ jobs: runs-on: ubuntu-latest steps: - - name: Build Repository - uses: billsonnn/nitro-react@master - env: - HOST: ${{ secrets.HOST }} - USERNAME: ${{ secrets.USERNAME }} - PORT: ${{ secrets.PORT }} - KEY: ${{ secrets.SSHKEY }} - with: - node-version: '14.x' - registry-url: 'https://registry.npmjs.org' - source: "." - target: "/var/www/nitrots.co/domains/prod.nitrots.co/html" - run: npm run build:prod + - name: Checkout Repository + uses: actions/checkout@v2 + with: + repository: 'billsonnn/nitro-react@dev' + - name: Install & Build + with: + node-version: '14.x' + registry-url: 'https://registry.npmjs.org' + run: | + npm i git+https://git@git.krews.org/nitro/nitro-renderer#dev + npm i + npm run build + - name: Archive Artifacts + uses: actions/upload-artifact@v2 + with: + path: | + build + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + host: ${{ secrets.HOST }} + port: ${{ secrets.PORT }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.SSHKEY }} + path: | + build + target: "/var/www/nitrots.co/domains/prod.nitrots.co/html"