Skip to content

Commit

Permalink
ci: add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Feb 3, 2024
1 parent 7c9c665 commit a068bf5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy

on:
push:
branches:
- main
paths:
- requirements.txt
- sources/**
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: |
sudo apt install -y lftp
python -m pip install -U pip
python -m pip install -r requirements.txt
- name: Generate
run: ./build.sh
- name: Automation
run: |
lftp \
-e 'mirror --delete --only-missing -en --reverse ./luma ${{ SFTP_PATH }} ; quit' \
-u '${{ secrets.SFTP_USER }},${{ secrets.SFTP_PASSWORD }}' \
${{ secrets.SFTP_URL }}

0 comments on commit a068bf5

Please sign in to comment.