Sync to new environment #199
1 changed files with 11 additions and 1 deletions
12
.github/workflows/dtchsyn.yml
vendored
12
.github/workflows/dtchsyn.yml
vendored
|
|
@ -3,12 +3,22 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
- main
|
- main
|
||||||
|
|
||||||
name: Publish Website
|
name: Publish Website
|
||||||
jobs:
|
jobs:
|
||||||
web-deploy:
|
web-deploy:
|
||||||
name: Deploy based on branch
|
name: Deploy based on branch
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set destination path based on branch
|
||||||
|
id: set-destination
|
||||||
|
run: |
|
||||||
|
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
|
||||||
|
echo "DESTINATION=/Lantaeu/dtch/" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "DESTINATION=/Lantaeu/dtch_dev/" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
@ -20,7 +30,7 @@ jobs:
|
||||||
password: ${{secrets.SYNPASS}}
|
password: ${{secrets.SYNPASS}}
|
||||||
port: 22
|
port: 22
|
||||||
uploads: |
|
uploads: |
|
||||||
./ => ./Lantaeu/dtch_dev
|
./ => ${{ env.DESTINATION }}
|
||||||
ignore: |
|
ignore: |
|
||||||
*.git
|
*.git
|
||||||
*/**/*git*
|
*/**/*git*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue