0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-28 18:42:51 -05:00
Commit graph

18 commits

Author SHA1 Message Date
Earl Warren
89966a10a5 developer: release: cut the documentation branch
- add a checklist to the release instructions
- use a pattern for push instead of an explicit list of branches
  it was previously advisable to avoid conflicts when there was
  no automated backports but it is no longer necessary

(cherry picked from commit 5acda1e0b2)
2024-05-07 10:56:17 +00:00
Earl Warren
726f8cb2bc
the v7.0 branch is cut
(cherry picked from commit c11ee8a32d)
2024-04-20 11:08:16 +02:00
Earl Warren
cb05660c81
admin: CLI: generate from --help
because the output of `forgejo docs` is unusable
2023-12-31 17:02:46 +01:00
Earl Warren
3d6043316f
[CI] the branch is named after the PR number 2023-12-27 18:34:38 +01:00
Earl Warren
91c2dcd702
[CI] checkout the head of the PR 2023-12-27 18:22:50 +01:00
Earl Warren
3d8dae047b
GITHUB_REF_NAME is different from the PR number depending 2023-12-26 00:24:53 +01:00
Earl Warren
0538ec1a01
previews are now available on forked pull requests as well 2023-12-25 23:59:02 +01:00
Earl Warren
7cf7e9fd8c
[CI] show the diff that would make things pretty if they are not
Fixes: https://codeberg.org/forgejo/docs/issues/133
2023-09-18 16:58:55 +02:00
Caesar Schinas
a575e3ef68 fix: ci: update website config filename 2023-08-22 21:59:32 +00:00
Caesar Schinas
db41d2411f
CI: use slashes in backport branch names and labels 2023-08-18 23:44:21 +01:00
Loïc Dachary
db05f79562 CI: do nothing instead of failing if trying to backport a PR 2023-08-18 20:51:01 +00:00
Earl Warren
3de0164331
CI: use WEBSITETOKEN
because using GITHUB_TOKEN has the undesirable side effect of blocking
the workflows when creating a branch and a PR from it
2023-08-18 14:50:44 +02:00
Earl Warren
2fd1640125
CI: add backport workflow
Refs: https://codeberg.org/forgejo/docs/issues/18
2023-08-18 14:12:49 +02:00
Loïc Dachary
3d68e4f36e
CI: move the preview script to an action 2023-08-17 23:56:58 +02:00
Loïc Dachary
5dde3a4231 add a comment with a link to the preview on creation
Refs: https://codeberg.org/forgejo/docs/issues/3
2023-08-17 17:30:40 +00:00
Caesar Schinas
4e059dc7f9
add linting for docs markdown content 2023-08-16 23:57:11 +01:00
Earl Warren
de971ac0e2 update the website when a branch is pushed (#9)
TODO:

- [x] comment out the `git push` once the website has submodules merged in

Fixes: https://codeberg.org/forgejo/docs/issues/8

Additionally

* Upgrade to node:20
* Exclude the README.md when copying to the preview

* Allow forgejo-website to push to main on website

![image](/attachments/14f4f38f-fdb8-4ca7-9aee-d9b7e108d71e)

Preview: https://forgejo.codeberg.page/@docs_pull_9/
Reviewed-on: https://codeberg.org/forgejo/docs/pulls/9
Reviewed-by: Loïc Dachary <dachary@noreply.codeberg.org>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2023-08-16 10:32:04 +00:00
Earl Warren
fc108d2064 add CI to preview PRs (#5)
TODO:

- [x] clone from website instead of caesar
- [x] skip the proof of change commit

Preview: https://forgejo.codeberg.page/@docs_pull_5/

This is a simplistic approach to get started with previews. It copies the website, moves the docs under `/forgejo-docs/{{ base branch }}`, create the website and publishes it for preview. No doubt the actual workflow will be different but that needs to be decided.

* Added a WEBSITETOKEN secret created from the forgejo-website user. It is a token with write access to repositories. https://codeberg.org/forgejo/docs/settings/actions/secrets. Contrary to woodpecker it is not in an environment variable but will be replaced when inserting `${{ secrets.WEBSITETOKEN }}` somewhere
* In the environment the variable was replaced CI_COMMIT_PULL_REQUEST → `${{ env.GITHUB_REF_NAME }}`
* The preview is published at https://forgejo.codeberg.page/@docs_pull_N/ instead of https://forgejo.codeberg.page/@pull_N/
* The `$$` were replaced with `$` in the script because Forgejo Actions does not interpret `$` and therefore does not need escaping them to `$$`

Reviewed-on: https://codeberg.org/forgejo/docs/pulls/5
Reviewed-by: Loïc Dachary <dachary@noreply.codeberg.org>
Reviewed-by: Caesar Schinas <caesar@caesarschinas.com>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2023-08-16 09:31:01 +00:00