klank-docs/.gitea/workflows/demo.yaml

38 lines
1.0 KiB
YAML
Raw Normal View History

2025-01-07 10:26:30 +00:00
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
2025-01-07 10:51:20 +00:00
on:
push:
branches: ["main"]
2025-01-07 10:26:30 +00:00
jobs:
2025-01-07 10:51:20 +00:00
compile-html:
2025-01-07 10:26:30 +00:00
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
2025-01-07 10:51:20 +00:00
- name: Setup python
uses: actions/setup-python@v5
with:
2025-01-07 10:55:59 +00:00
python-version: "3.11.2"
2025-01-07 10:51:20 +00:00
- name: Install dependencies
2025-01-07 10:26:30 +00:00
run: |
2025-01-07 10:51:20 +00:00
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run the python application
2025-01-07 11:01:50 +00:00
run: python app.py
- name: Push the changes to the FTP server
uses: https://github.com/SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
port: ${{ secrets.FTP_PORT }} # Added port configuration
local-dir: dist/
server-dir: /vitrinekast/temp-action/
2025-01-07 10:51:20 +00:00
2025-01-07 10:26:30 +00:00
- run: echo "🍏 This job's status is ${{ job.status }}."