WIP: Auto-deploy action #22

Draft
adina wants to merge 2 commits from action into main
Owner

We want to auto-deploy this repository using a runner on hub.psychoinformatics.de. This draft PR establishes a workflow for this.
While the workflow even when it is complete will never run on this instance, it should be usable on hub.psychoinformatics.de. My plan is to have the action be triggered using the UI (i.e., button press, no PRs/pushes/etc). This way the mirror repo can stay "read-only". At the same time, the clone action is -- due to the recursive get -- somewhat costly. Thus, the action can be consciously triggered rather than ran on each commit.

The action is short and is hopefully self-explanatory. But without testing, access to the server (nor having written an action in ... years?) there's likely plenty to be ironed out. My questions specific to the www org are:

  • what's the right place to clone the repository to? Is the path declaration below correct?
  • I'm using "ubuntu-latest" because I wasn't able to find a list of available actions. Is that an existing and ok choice? Most other actions in repos under www use a hugo or pelican specific image, but those tools are not needed here.
We want to auto-deploy this repository using a runner on hub.psychoinformatics.de. This draft PR establishes a workflow for this. While the workflow even when it is complete will never run on this instance, it *should* be usable on hub.psychoinformatics.de. My plan is to have the action be triggered using the UI (i.e., button press, no PRs/pushes/etc). This way the mirror repo can stay "read-only". At the same time, the clone action is -- due to the recursive get -- somewhat costly. Thus, the action can be consciously triggered rather than ran on each commit. The action is short and is hopefully self-explanatory. But without testing, access to the server (nor having written an action in ... years?) there's likely plenty to be ironed out. My questions specific to the www org are: - what's the right place to clone the repository to? Is the path declaration below correct? - I'm using "ubuntu-latest" because I wasn't able to find a list of available actions. Is that an existing and ok choice? Most other actions in repos under www use a hugo or pelican specific image, but those tools are not needed here.
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'action:action'
git switch 'action'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'action'
git switch 'action'
git rebase 'main'
git switch 'main'
git merge --ff-only 'action'
git switch 'action'
git rebase 'main'
git switch 'main'
git merge --no-ff 'action'
git switch 'main'
git merge --squash 'action'
git switch 'main'
git merge --ff-only 'action'
git switch 'main'
git merge 'action'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
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
edu/slides!22
No description provided.