diff --git a/.env b/.env deleted file mode 100644 index 4452883..0000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -REACT_APP_API_URL= \ No newline at end of file diff --git a/.env.production b/.env.production deleted file mode 100644 index ed36bc0..0000000 --- a/.env.production +++ /dev/null @@ -1 +0,0 @@ -REACT_APP_API_URL="localhost:80" \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac51040..61cf399 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 \ No newline at end of file + 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 \ No newline at end of file