diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9633549 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ +name: Deploy + +on: + push: + branches: main + paths: Dockerfile + +jobs: + deploy: + uses: winstxnhdw/actions/.github/workflows/spaces-deploy.yml@main + secrets: + token: ${{ secrets.HF_TOKEN }} diff --git a/.github/workflows/warmer.yml b/.github/workflows/warmer.yml new file mode 100644 index 0000000..cb7aa6d --- /dev/null +++ b/.github/workflows/warmer.yml @@ -0,0 +1,18 @@ +name: Warm + +on: + schedule: + # ┌──────────────── minute (0 - 59) + # │ ┌────────────── hour (0 - 23) + # │ │ ┌──────────── day of the month (1 - 31) + # │ │ │ ┌──────── month (1 - 12 or JAN-DEC) + # │ │ │ │ ┌────── day of the week (0 - 6 or SUN-SAT) + # │ │ │ │ │ + # │ │ │ │ │ + # │ │ │ │ │ + # * * * * * + - cron: 0 0 */2 * * + +jobs: + warm: + uses: winstxnhdw/actions/.github/workflows/spaces-warmer.yml@main diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..64cfc4c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM dadoum/anisette-v3-server + diff --git a/README.md b/README.md new file mode 100644 index 0000000..19de4bc --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# anisette-api + +[![main.yml](https://github.com/winstxnhdw/anisette-api/actions/workflows/main.yml/badge.svg)](https://github.com/winstxnhdw/anisette-api/actions/workflows/main.yml) +[![warmer.yml](https://github.com/winstxnhdw/anisette-api/actions/workflows/warmer.yml/badge.svg)](https://github.com/winstxnhdw/anisette-api/actions/workflows/warmer.yml) + +[![Open in Spaces](https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-md-dark.svg)](https://huggingface.co/spaces/winstxnhdw/anisette-api) +[![Open a Pull Request](https://huggingface.co/datasets/huggingface/badges/raw/main/open-a-pr-md-dark.svg)](https://github.com/winstxnhdw/anisette-api/compare) + +A self-hosted anisette server for SideStore.