Add .forgejo/workflows/nightly.yml
This commit is contained in:
commit
a99490d5be
1 changed files with 23 additions and 0 deletions
23
.forgejo/workflows/nightly.yml
Normal file
23
.forgejo/workflows/nightly.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 * * * *"
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
repository: ashley/tldr
|
||||
fetch-depth: 0
|
||||
|
||||
- name: "Make archives"
|
||||
run: mkdir dist;find * -maxdepth 0 -name "pages.*" -exec sh -c "cd {} && zip -r ../dist/tldr-{}.zip ." \;
|
||||
|
||||
- uses: actions/forgejo-release@v1
|
||||
with:
|
||||
direction: upload
|
||||
url: https://code.forgejo.org
|
||||
release-dir: dist/release
|
||||
release-notes: "MY RELEASE NOTES"
|
Loading…
Add table
Reference in a new issue