vd-plugins/.forgejo/workflows/deploy.yml
everestmcarthur a46c4e1c14
Some checks failed
Build and deploy / deploy (push) Failing after 3s
Add Forgejo Actions workflow (copied from .github/workflows/deploy.yml)
2026-08-21 07:48:50 -04:00

39 lines
1 KiB
YAML

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