updated workflow
Some checks failed
Build and Deploy Website / Build Website (push) Successful in 1m51s
Build and Deploy Website / deploy-dev (push) Failing after 16s

This commit is contained in:
Samuel Philipp 2023-12-06 03:04:40 +01:00
parent 4969625d8b
commit c1273bb468

View file

@ -22,10 +22,10 @@ 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 name: website-build
path: dist/ path: dist/
deploy-dev: deploy-dev:
needs: [website] needs: [website-build]
runs-on: docker runs-on: docker
container: container:
image: node:lts-alpine image: node:lts-alpine
@ -36,6 +36,14 @@ jobs:
- 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 ./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 ./website-build/dist/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 - name: Deploy German Version
run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./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 ./website-build/dist/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 }}