.gitea/workflows/build_index.yml hinzugefügt
All checks were successful
Continuous Integration / Generate index.html (push) Successful in 10s
All checks were successful
Continuous Integration / Generate index.html (push) Successful in 10s
This commit is contained in:
parent
eafc98486f
commit
3b6c3dddab
25
.gitea/workflows/build_index.yml
Normal file
25
.gitea/workflows/build_index.yml
Normal file
@ -0,0 +1,25 @@
|
||||
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
|
||||
- name: Upload build artifacts
|
||||
uses: christopherhx/gitea-upload-artifact@v4
|
||||
with:
|
||||
path: index.html
|
Loading…
x
Reference in New Issue
Block a user