sub domain deploy for branches 8
This commit is contained in:
16
.github/workflows/deploy.yml
vendored
16
.github/workflows/deploy.yml
vendored
@@ -46,7 +46,18 @@ jobs:
|
||||
cat .env
|
||||
echo $APP_NAME
|
||||
|
||||
- name: Upload .env file
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: env-file
|
||||
path: .env
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- name: Download .env file
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: env-file
|
||||
path: .
|
||||
- name: Build app
|
||||
run: |
|
||||
set -a && source .env && set +a
|
||||
@@ -68,6 +79,11 @@ jobs:
|
||||
- /var/docker-web:/var/docker-web
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Download .env file
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: env-file
|
||||
path: .
|
||||
- name: Deploy
|
||||
run: |
|
||||
set -a && source .env && set +a
|
||||
|
||||
Reference in New Issue
Block a user