From a99490d5be5313e0dbb65f32487ea80128dc76d6 Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 2 Oct 2024 09:15:09 +0000 Subject: [PATCH] Add .forgejo/workflows/nightly.yml --- .forgejo/workflows/nightly.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .forgejo/workflows/nightly.yml diff --git a/.forgejo/workflows/nightly.yml b/.forgejo/workflows/nightly.yml new file mode 100644 index 0000000..fb04389 --- /dev/null +++ b/.forgejo/workflows/nightly.yml @@ -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" \ No newline at end of file