Test deploy

This commit is contained in:
Bill 2021-09-16 01:42:56 -04:00
parent 0b4c889fed
commit f76428e8f7

View File

@ -10,16 +10,30 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Build Repository - name: Checkout Repository
uses: billsonnn/nitro-react@master uses: actions/checkout@v2
env: with:
HOST: ${{ secrets.HOST }} repository: 'billsonnn/nitro-react@dev'
USERNAME: ${{ secrets.USERNAME }} - name: Install & Build
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.SSHKEY }}
with: with:
node-version: '14.x' node-version: '14.x'
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
source: "." 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" target: "/var/www/nitrots.co/domains/prod.nitrots.co/html"
run: npm run build:prod