From 3ec22e2a3108923952cdaae506af4260cb64d828 Mon Sep 17 00:00:00 2001 From: Lukas Langrock Date: Wed, 24 Jul 2024 23:46:51 +0200 Subject: [PATCH 1/3] script.py aktualisiert --- script.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script.py b/script.py index 7a3e1af..e2036e1 100644 --- a/script.py +++ b/script.py @@ -62,3 +62,6 @@ with open(output_file, 'w') as f: print(f"HTML file '{output_file}' has been created with links to all files in the bucket.") +# Upload file to bucket +bucket.upload_local_file(local_file=output_file, file_name="index.html") + -- 2.45.2 From 8b41a039c86fdc464135363aa8090fcfb93800b7 Mon Sep 17 00:00:00 2001 From: Lukas Langrock Date: Wed, 24 Jul 2024 23:48:22 +0200 Subject: [PATCH 2/3] script.py aktualisiert --- script.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/script.py b/script.py index e2036e1..e26f942 100644 --- a/script.py +++ b/script.py @@ -60,8 +60,6 @@ output_file = 'index.html' with open(output_file, 'w') as f: f.write(html_content) -print(f"HTML file '{output_file}' has been created with links to all files in the bucket.") - # Upload file to bucket bucket.upload_local_file(local_file=output_file, file_name="index.html") -- 2.45.2 From 64fc3ab45afbf90a28b42e01df687013721bfefc Mon Sep 17 00:00:00 2001 From: Lukas Langrock Date: Wed, 24 Jul 2024 23:48:41 +0200 Subject: [PATCH 3/3] .gitea/workflows/build_index.yml aktualisiert --- .gitea/workflows/build_index.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitea/workflows/build_index.yml b/.gitea/workflows/build_index.yml index 494de96..a5cb878 100644 --- a/.gitea/workflows/build_index.yml +++ b/.gitea/workflows/build_index.yml @@ -18,8 +18,4 @@ jobs: 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 \ No newline at end of file + run: python3 script.py \ No newline at end of file -- 2.45.2