diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..0be330e --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,27 @@ +name: Synchronize data + +on: + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: 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: npm run sync-all + + - uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions \ No newline at end of file diff --git a/package.json b/package.json index 3365c2c..5904444 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "articles": "deno run --allow-all utils/articles.js", "talks": "deno run --allow-all utils/talks.js", "explorer": "deno run --allow-all utils/explorer.js", - "all": "npm run core && npm run contribs && npm run articles && npm run talks && npm run explorer" + "sync-all": "npm run core && npm run contribs && npm run articles && npm run talks && npm run explorer" }, "dependencies": { "@astrojs/tailwind": "^5.0.2",