nitro-react/.github/workflows/deploy.yml
2021-09-16 01:42:56 -04:00

40 lines
968 B
YAML

name: Deploy Bundle@dev
on:
push:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- 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"