this is a repo meant to test forgejo-actions https://jackwaterloo.pages.jackwaterloo.com/test-actions
  • Shell 77.1%
  • HTML 22.9%
Find a file
Jack Waterloo 25032ec518
Some checks failed
Publish to Git Pages / publish (push) Has been cancelled
Forgejo Actions Demo / Explore-Forgejo-Actions (push) Has been cancelled
Document inactive Actions examples
2026-07-11 14:09:20 -05:00
.forgejo/workflows added variable to workflow 2026-03-13 20:18:55 -05:00
docs added http redirect 2026-03-14 11:13:15 -05:00
git-pages Add example configuration for git-pages 2026-03-23 19:06:50 -05:00
public added docs and removed some info 2026-03-12 21:43:17 -05:00
scripts added docs and removed some info 2026-03-12 21:43:17 -05:00
.gitignore added .gitignore 2026-03-11 21:43:16 -05:00
example.txt Add initial files: example.txt and Forgejo Actions workflow 2026-02-16 12:55:44 -06:00
README.md Document inactive Actions examples 2026-07-11 14:09:20 -05:00

test-actions

This repository preserves example Forgejo Actions workflows: a basic CI-style workflow and a static-site publishing workflow. It is reference material only: this Forgejo instance no longer has a runner or Git Pages hosting configured, so the workflows do not execute or deploy.

Actions explanation

This repo contains two Forgejo Actions workflows in .forgejo/workflows/:

  • test.yaml

    • Runs on every push.
    • Prints context details (event, OS, repo) and verifies command execution on the runner.
    • Shows a simple smoke test for runner registration and workflow execution.
  • pages.yaml

    • Runs on pushes to main.
    • Collects static content into _site/ (from public/ and/or index.html).
    • Shows how to publish _site/ using actions/git-pages@v2.

Static-site publishing reference

The publish workflow is retained as an example of the Git Pages URL pattern:

https://<user>.<PAGES_DOMAIN>/<repo>/

It builds that URL as:

https://${{ github.actor }}.${{ vars.PAGES }}/${{ github.event.repository.name }}/

Configuration needed to reuse it

  1. In Forgejo, set repository or organization variable:
    • PAGES = your Git Pages domain (example: pages.example.com)
  2. Ensure the workflow has access to:
    • forge.token for actions/git-pages@v2 authentication
  3. Register a Forgejo runner, then push changes to the main branch to trigger deployment.

Site content behavior

During deployment, the workflow prepares _site/ like this:

  • Copies everything from public/ if it exists.
  • Copies root index.html if it exists.

So you can deploy by adding either:

  • a public/ folder with static files, or
  • a root index.html file.