add sync workflow

This commit is contained in:
tree🌴 2024-01-25 22:42:07 +01:00
parent 326d56465f
commit 49266a146e
2 changed files with 28 additions and 1 deletions

27
.github/workflows/sync.yml vendored Normal file
View file

@ -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

View file

@ -13,7 +13,7 @@
"articles": "deno run --allow-all utils/articles.js", "articles": "deno run --allow-all utils/articles.js",
"talks": "deno run --allow-all utils/talks.js", "talks": "deno run --allow-all utils/talks.js",
"explorer": "deno run --allow-all utils/explorer.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": { "dependencies": {
"@astrojs/tailwind": "^5.0.2", "@astrojs/tailwind": "^5.0.2",