nitro-react/.github/workflows/deploy.yml

33 lines
722 B
YAML
Raw Normal View History

2021-09-16 07:17:49 +02:00
name: Deploy Bundle@dev
on:
push:
branches: [ dev ]
jobs:
build:
2021-09-16 08:50:12 +02:00
runs-on: self-hosted
2021-09-16 07:17:49 +02:00
steps:
2021-09-16 07:42:56 +02:00
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install & Build
run: |
2021-09-16 09:36:29 +02:00
npm run build:prod
2021-09-16 07:42:56 +02:00
- 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"