Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/TimoReusch/homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoReusch committed Mar 20, 2024
2 parents a04faac + 13e0adb commit dfde676
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: deploy
on:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Get actions
uses: actions/checkout@v4
with:
lfs: 'true'

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm install

- name: build
run: |
npm run build
- name: 📂 Sync files
uses: pressidium/lftp-mirror-action@v1
with:
host: ${{ secrets.FTP_HOSTNAME }}
port: 23
user: ${{ secrets.FTP_USER }}
pass: ${{ secrets.FTP_PASSWORD }}
localDir: './build/'
remoteDir: '.'
settings: 'sftp:auto-confirm=yes'
onlyNewer: true

0 comments on commit dfde676

Please sign in to comment.