You may want to perform some screenshot, or generate txt file and store those data to Supabase Bucket, and this is the tools for you!
Path name of the file to be uploaded.
eg: "public/screenshots.png"
Name of the bucket to upload to
eg: "screenshot"
Supabase Storage from.upload
fileOptions parameter, the Content-Type
header value.
eg: "image/png"
Supabase Storage from.upload
fileOptions parameter, the Content-Control
value.
eg: "3600"
Supabase Storage from.upload
fileOptions parameter, the Upsert
value.
eg: "true"
Go to Dashboard Settings, copy and paste the URL into GitHub Repo's secret.
Go to Dashboard Settings, copy and paste the Anon Key into GitHub Repo's secret.
In .github/workflows/screenshot.yml
name: Screenshot Action
on:
push:
branches: -master
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
jobs:
screenshots:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Screenshot Website
id: screenshot
uses: swinton/screenshot-website@v1.x
with:
source: https://github.com
destination: screenshot.png
- name: Upload image to Storage
uses: status-base/upload-file-to-supabase-storage@v1.0.2
with:
file_path: ${{ steps.screenshot.outputs.path }} // generated from previous step
bucket: website
content_type: image/png
upsert: true