diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml new file mode 100644 index 0000000..beda97e --- /dev/null +++ b/.github/workflows/sync.yaml @@ -0,0 +1,30 @@ +name: Synchronize repo + +on: + schedule: + - cron: '0 */1 * * *' + workflow_dispatch: + +permissions: + contents: write + id-token: write + pages: write + actions: write + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout your repository using git + uses: actions/checkout@v3 + + - uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + + - name: Run synchronization script + run: make sync + + - uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions \ No newline at end of file diff --git a/Makefile b/Makefile index c353158..7a3d0d0 100644 --- a/Makefile +++ b/Makefile @@ -9,5 +9,8 @@ frontend: readme: deno run --allow-all utils/readme.js +sync: + make readme + compile: cp -r web/dist/** dist \ No newline at end of file