0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-12-02 19:24:46 -05:00
forgejo-docs/.forgejo/workflows/push.yml
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

26 lines
686 B
YAML

name: push
on:
push:
branches:
- 'next'
- 'v*'
jobs:
publish:
runs-on: docker
steps:
- name: update the website submodules
if: ${{ secrets.WEBSITETOKEN != '' }}
run: |
git clone --recursive https://forgejo-website:${{ secrets.WEBSITETOKEN }}@codeberg.org/forgejo/website
cd website
git submodule update --remote
git config user.email "ci@forgejo.org" ; git config user.name "forgejo-website"
git add .
if git diff-index --quiet HEAD ; then
echo Nothing changed, not pushing
else
git commit -m 'publish' -a
git push
fi