mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
Update deploy script
This commit is contained in:
parent
53d21582c4
commit
073ff1f24c
37
.github/workflows/deploy.yml
vendored
37
.github/workflows/deploy.yml
vendored
@ -19,21 +19,34 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install & Build
|
- name: Cache dependencies
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: '~/.npm'
|
||||||
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-node-
|
||||||
|
- name: Reinstall @nitrots/nitro-renderer
|
||||||
run: |
|
run: |
|
||||||
npm run build:prod
|
npm uninstall @nitrots/nitro-renderer
|
||||||
|
npm install git+https://git@git.krews.org/nitro/nitro-renderer#dev
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
- name: Build Nitro
|
||||||
|
run: |
|
||||||
|
npm run build
|
||||||
- name: Archive Artifacts
|
- name: Archive Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
build
|
build
|
||||||
- name: Upload Artifacts
|
- name: Deploy Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: easingthemes/ssh-deploy@main
|
||||||
with:
|
env:
|
||||||
host: ${{ secrets.HOST }}
|
REMOTE_HOST: ${{ secrets.HOST }}
|
||||||
port: ${{ secrets.PORT }}
|
REMOTE_PORT: ${{ secrets.PORT }}
|
||||||
username: ${{ secrets.USERNAME }}
|
REMOTE_USER: ${{ secrets.USERNAME }}
|
||||||
key: ${{ secrets.SSHKEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSHKEY }}
|
||||||
path: |
|
SOURCE: "build/"
|
||||||
build
|
TARGET: ${{ secrets.TARGET }}
|
||||||
target: "/var/www/nitrots.co/domains/prod.nitrots.co/html"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user