b2_make_index/.gitea/workflows/build_index.yml
Lukas Langrock b825d865d2
All checks were successful
Continuous Integration / Generate index.html (push) Successful in 11s
Upload index to bucket directly (#1)
Instead of just creating the file and uploading it to Gitea via workflow, why not upload it directly to the bucket that is meant for? Exactly, so that's what changed.

Reviewed-on: #1
2024-07-24 23:51:16 +02:00

21 lines
580 B
YAML

on: [push]
name: Continuous Integration
jobs:
main:
name: Generate index.html
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
run: |
apt update && apt install python3 python3-pip -y
pip install b2sdk jinja2 urllib3
- name: Run script
env:
APPLICATION_KEY: ${{ secrets.APPLICATION_KEY }}
APPLICATION_KEY_ID: ${{ secrets.APPLICATION_KEY_ID }}
BUCKET_NAME: ${{ vars.BUCKET_NAME }}
BASE_URL: ${{ vars.BASE_URL }}
run: python3 script.py