Add .forgejo/workflows/nightly.yml

This commit is contained in:
Ashley Graves 2024-10-02 09:15:09 +00:00
commit a99490d5be

View 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"