develop #206
1 changed files with 29 additions and 6 deletions
|
@ -22,27 +22,50 @@ jobs:
|
||||||
run: npm run build:de
|
run: npm run build:de
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: website-build
|
name: build
|
||||||
path: dist/
|
path: dist/
|
||||||
deploy-dev:
|
deploy-dev:
|
||||||
needs: [website-build]
|
name: Deploy Dev Website
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
if:
|
needs: [build]
|
||||||
- github.ref == 'refs/heads/develop'
|
if: github.ref == 'refs/heads/develop'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: which lftp || ( apk --update add lftp )
|
run: which lftp || ( apk --update add lftp )
|
||||||
- name: Deploy English Version
|
- name: Deploy English Version
|
||||||
run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./website-build/dist/en/ dev.samuel-philipp.com/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
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:
|
env:
|
||||||
ftp_host: ${{ secrets.FTP_HOST }}
|
ftp_host: ${{ secrets.FTP_HOST }}
|
||||||
ftp_username: ${{ secrets.FTP_USERNAME }}
|
ftp_username: ${{ secrets.FTP_USERNAME }}
|
||||||
ftp_password: ${{ secrets.FTP_PASSWORD }}
|
ftp_password: ${{ secrets.FTP_PASSWORD }}
|
||||||
- name: Deploy German Version
|
- name: Deploy German Version
|
||||||
run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./website-build/dist/de/ dev.samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
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:
|
env:
|
||||||
ftp_host: ${{ secrets.FTP_HOST }}
|
ftp_host: ${{ secrets.FTP_HOST }}
|
||||||
ftp_username: ${{ secrets.FTP_USERNAME }}
|
ftp_username: ${{ secrets.FTP_USERNAME }}
|
||||||
|
|
Loading…
Reference in a new issue