Add a forgejo deploy action #7

Merged
msz merged 2 commits from forgejodeploy into trunk 2025-05-05 14:54:32 +00:00
Owner

The workflow should deploy the website from our forgejo instance. This is based on:
https://hub.psychoinformatics.de/www/www.abcd-j.de/src/branch/published/.forgejo/workflows/deploy.yml

Notable changes:

  • we use the trunk branch as the "official" one
  • we do not get file content because the sfb docs are (currently)
    git-only (no annex or datalad)
  • the folder into which the built website is copied is changed

Addresses part of #6

The workflow should deploy the website from our forgejo instance. This is based on: https://hub.psychoinformatics.de/www/www.abcd-j.de/src/branch/published/.forgejo/workflows/deploy.yml Notable changes: - we use the `trunk` branch as the "official" one - we do not get file content because the sfb docs are (currently) git-only (no annex or datalad) - the folder into which the built website is copied is changed Addresses part of #6
The action should deploy the website from our forgejo instance.
This is based on:
https://hub.psychoinformatics.de/www/www.abcd-j.de/src/branch/published/.forgejo/workflows/deploy.yml

Notable changes:
- we use the `trunk` branch as the "official" one
- we do not get file content because the sfb docs are (currently)
  git-only (no annex or datalad)
- the folder into which the built website is copied is changed
Owner

Please adjust the workflow to only run when a change in the www org is detected cerebra.fz-juelich.de/www/annotate.inm7.de-simplesubmit@0716fdf8fc/.forgejo/workflows/deploy.yml (L10)

Please adjust the workflow to only run when a change in the `www` org is detected https://cerebra.fz-juelich.de/www/annotate.inm7.de-simplesubmit/src/commit/0716fdf8fc27ae9ebfe90d47307382b2434f3096/.forgejo/workflows/deploy.yml#L10
This adjusts the deploy workflow to only run when a change is detected
in the www org (where a pull mirror currently resides).

This is done by checking the repository owner (www) instead of the more
specific repository check (www/rdm.sfb1451.de) which could also be used;
see: https://forgejo.org/docs/latest/user/actions/#contexts-reference-guide

Suggested-by: Michael Hanke <m.hanke@fz-juelich.de>
Author
Owner

Adjusted according to the suggestion.

Adjusted according to the suggestion.
msz merged commit 0ea3537e94 into trunk 2025-05-05 14:54:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sfb1451/rdm.sfb1451.de!7
No description provided.