deploy workflow
This commit is contained in:
20
.github/workflows/main.yml
vendored
20
.github/workflows/main.yml
vendored
@@ -4,11 +4,9 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- mauster
|
||||
- developmaunt
|
||||
pull_request:
|
||||
branches:
|
||||
- mauster
|
||||
- developmaunt
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
@@ -23,11 +21,25 @@ jobs:
|
||||
uses: actions/checkout@main
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Use Node.js
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@main
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Build
|
||||
run: npm run build
|
||||
run: npm run build
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
needs: build
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@main
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Create .env File
|
||||
run: |
|
||||
touch .env
|
||||
echo "REACT_APP_API_URL=86.81.166.51:80" > .env
|
||||
- name: Docker Compose
|
||||
run: docker-compose up -d --build
|
||||
Reference in New Issue
Block a user