Merge pull request #211 from OpzekerIT/dev

Dev
This commit is contained in:
Lanta 2025-04-03 11:14:38 +02:00 committed by GitHub
commit 589fab9210
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 38 deletions

View file

@ -1,38 +0,0 @@
on:
push:
branches:
- dev
- main
name: Publish Website
jobs:
web-deploy:
name: Deploy based on branch
runs-on: ubuntu-latest
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 code
uses: actions/checkout@v4
- name: Show upload destination
run: |
echo "Uploading to: $DESTINATION"
- name: Upload via SFTP
uses: pressidium/lftp-mirror-action@v1
with:
host: ${{ secrets.SYNADDR }}
port: 22
user: ${{ secrets.SYNUSR }}
pass: ${{ secrets.SYNPASS }}
localDir: ./
remoteDir: ${{ env.DESTINATION }}
args: "--exclude-glob *.git --exclude-glob config.php --exclude-glob data/**/*.json"

View file

@ -1,4 +1,5 @@
$logprefix = get-date -Format ddMMyyy_HHmmss $logprefix = get-date -Format ddMMyyy_HHmmss
#up
Start-Transcript -Path "../logs/report_new_matches_$logprefix.log" -Append Start-Transcript -Path "../logs/report_new_matches_$logprefix.log" -Append
if ($PSScriptRoot.length -eq 0) { if ($PSScriptRoot.length -eq 0) {