mirror of
https://github.com/web3privacy/news.git
synced 2024-10-15 18:06:26 +02:00
sync workflow
This commit is contained in:
parent
004e7a18db
commit
68367e26b6
2 changed files with 33 additions and 0 deletions
30
.github/workflows/sync.yaml
vendored
Normal file
30
.github/workflows/sync.yaml
vendored
Normal file
|
@ -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
|
3
Makefile
3
Makefile
|
@ -9,5 +9,8 @@ frontend:
|
||||||
readme:
|
readme:
|
||||||
deno run --allow-all utils/readme.js
|
deno run --allow-all utils/readme.js
|
||||||
|
|
||||||
|
sync:
|
||||||
|
make readme
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
cp -r web/dist/** dist
|
cp -r web/dist/** dist
|
Loading…
Reference in a new issue