39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
name: Gitea Actions Demo
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
compile-html:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11.2"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
- name: Run the python application
|
|
run: python app.py
|
|
|
|
- name: Push the changes to the FTP server
|
|
uses: https://github.com/pressidium/lftp-mirror-action@v1
|
|
with:
|
|
host: ${{ secrets.FTP_SERVER }}
|
|
user: ${{ secrets.FTP_USERNAME }}
|
|
pass: ${{ secrets.FTP_PASSWORD }}
|
|
port: 7008
|
|
localDir: 'dist/'
|
|
options: '--verbose'
|
|
remoteDir: '/vitrinekast/temp-action/'
|
|
|
|
- run: echo "🍏 This job's status is ${{ job.status }}." |