Compare commits
No commits in common. "c7660c3de4d432ec8f552f16f81452ae654c7b15" and "78bce44bf9301cf97989e66b48a3832c8aff572c" have entirely different histories.
c7660c3de4
...
78bce44bf9
3 changed files with 1 additions and 73 deletions
|
@ -1,72 +0,0 @@
|
||||||
name: Build and Deploy Website
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- develop
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build Website
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: node:lts
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: npm install
|
|
||||||
- name: Build English Version
|
|
||||||
run: npm run build
|
|
||||||
- name: Build German Version
|
|
||||||
run: npm run build:de
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: build
|
|
||||||
path: dist/
|
|
||||||
deploy-dev:
|
|
||||||
name: Deploy Dev Website
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: node:lts-alpine
|
|
||||||
needs: [build]
|
|
||||||
if: github.ref == 'refs/heads/develop'
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: which lftp || ( apk --update add lftp )
|
|
||||||
- name: Deploy English Version
|
|
||||||
run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./build/en/ dev.samuel-philipp.com/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
|
||||||
env:
|
|
||||||
FTP_HOST: ${{ secrets.FTP_HOST }}
|
|
||||||
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
|
||||||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
|
||||||
- name: Deploy German Version
|
|
||||||
run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./build/de/ dev.samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
|
||||||
env:
|
|
||||||
FTP_HOST: ${{ secrets.FTP_HOST }}
|
|
||||||
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
|
||||||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
|
||||||
deploy:
|
|
||||||
name: Deploy Website
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: node:lts-alpine
|
|
||||||
needs: [build]
|
|
||||||
if: github.ref == 'refs/heads/main'
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: which lftp || ( apk --update add lftp )
|
|
||||||
- name: Deploy English Version
|
|
||||||
run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./build/en/ samuel-philipp.com/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
|
||||||
env:
|
|
||||||
FTP_HOST: ${{ secrets.FTP_HOST }}
|
|
||||||
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
|
||||||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
|
||||||
- name: Deploy German Version
|
|
||||||
run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./build/de/ samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
|
||||||
env:
|
|
||||||
FTP_HOST: ${{ secrets.FTP_HOST }}
|
|
||||||
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
|
||||||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
|
|
@ -36,6 +36,6 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap": "^5.3.2",
|
"bootstrap": "^5.3.2",
|
||||||
"flag-icons": "^7.0.3"
|
"flag-icons": "^7.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue