mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Test deploy
This commit is contained in:
parent
0b4c889fed
commit
f76428e8f7
40
.github/workflows/deploy.yml
vendored
40
.github/workflows/deploy.yml
vendored
@ -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 }}
|
with:
|
||||||
KEY: ${{ secrets.SSHKEY }}
|
node-version: '14.x'
|
||||||
with:
|
registry-url: 'https://registry.npmjs.org'
|
||||||
node-version: '14.x'
|
run: |
|
||||||
registry-url: 'https://registry.npmjs.org'
|
npm i git+https://git@git.krews.org/nitro/nitro-renderer#dev
|
||||||
source: "."
|
npm i
|
||||||
target: "/var/www/nitrots.co/domains/prod.nitrots.co/html"
|
npm run build
|
||||||
run: npm run build:prod
|
- 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"
|
||||||
|
Loading…
Reference in New Issue
Block a user