Commit graph

12 commits

Author SHA1 Message Date
nodiscc
4d462e38cf
doc/tools: update instructions for deploy key setup 2023-08-22 15:45:19 +02:00
nodiscc
f40a4842ba
tools: switch deployment targets to awesome-selfhosted/awesome-selfhosted(-html) (#63)
- fixes https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/4
2023-08-22 13:12:34 +00:00
nodiscc
97f1bad00a
tools/github actions: build: always check out the latest commit of the branch that triggered the workflow (#52)
- without this, the commit that would be checked out would be the one that triggered the workflow
- when called from the needs: keyword in daily-update-metadata.yml, the build would run from the version prior to automatic metadata update/commit back to the repository
2023-07-31 20:48:34 +00:00
nodiscc
3bb73247d2
tools/github actions: display the target environment URL on the workflow page 2023-07-28 14:08:10 +02:00
nodiscc
07462d18a3
tools/github actions: build/push markdown/html version in parallel 2023-07-28 14:06:06 +02:00
nodiscc
f8fc616e56
tools/github actions: make build workflow reusable by other workflows
- https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_call
- https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/runs/5680604483
- error parsing called workflow: workflow is not reusable as it is missing a on.workflow_call trigger
2023-07-27 14:42:02 +02:00
nodiscc
d157f626ce
tools: makefile/github actions: don't call make install target multiple times
- make install must only run manually when the build environment has not been set up yet
2023-07-24 20:36:24 +02:00
nodiscc
6ea9e4507f
finalize automation/CI workflows:
- build markdown/HTML versions, use separate makefile targets/hecat configuration files for each export format/push task
- add non-free.md generation step to markdown export hecat configuration file
- add makefile targets to push exports to https://github.com/awesome-selfhosted/awesome-selfhosted and https://github.com/nodiscc/awesome-selfhosted-html-preview
- install: install sphinx <7 directly using pip since it can't be installed from setup.py https://github.com/sphinx-doc/sphinx/issues/11130
- pin sphinx to version <7, sphinx-design is not compatible with sphinx 7 https://github.com/executablebooks/sphinx-design/issues/130
- add sphinx configuration file
- tools/makefile: monkeypatch furo theme to display build tools and license link in footer (furo/sphinx does not provide a way to customize this https://github.com/pradyunsg/furo/discussions/612)
- fix dependencies between makefile targets
- setup/document SSH deploy keys usage
- each repository requires a different deploy key, trying to add a deploy key to repo B, which has already been added to repo A results in error 'this key already exists'
- set git remote URL to use ssh URIs before push (required to use SSH deploy keys)
- when referencing an environment secret, environment: key must be defined explicitly for the step (https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#referencing-an-environment)
- use a single SSH key file/no ssh-agent, else git push will try to use the first registered key and fail with permission denied when trying to push to the HTML repository
- use variables to identify target repos
- use temporary repositories as push destination
2023-07-24 16:10:43 +02:00
nodiscc
423b418371
tools/github actions: fix concurrency between workflows
- only jobs that are part of the same workflow should not run concurrently
2023-07-22 19:13:03 +02:00
nodiscc
05ad5ea709
tools/github actions: set job names 2023-07-22 11:34:55 +02:00
nodiscc
986e2dde55
tools/github actions: set workflow names
- https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#name
2023-07-22 11:33:03 +02:00
nodiscc
083b9f0605
tools/github actions: separate workflows for pull requests and build from each commit on master 2023-07-22 11:26:01 +02:00
Renamed from .github/workflows/ci.yml (Browse further)