From a46c4e1c141ac75ac6f450e74bb0d5d19e0ee8fd Mon Sep 17 00:00:00 2001 From: everestmcarthur Date: Fri, 21 Aug 2026 07:48:50 -0400 Subject: [PATCH] Add Forgejo Actions workflow (copied from .github/workflows/deploy.yml) --- .forgejo/workflows/deploy.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .forgejo/workflows/deploy.yml diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..eba7654 --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,39 @@ +name: Build and deploy + +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: "latest" + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Build plugin(s) + run: bun run build + + - name: Copy additional files + run: | + cp README.md dist/README.md + printf -- "---\npermalink: /404.html\n---\n" > dist/404.md + printf -- "> **Note:** You accessed a link that returned a 404, probably by clicking one of the plugin links. You're supposed to copy the link address and add it into Vendetta.\n\n" >> dist/404.md + cat README.md >> dist/404.md + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist + enable_jekyll: true