Switched to synchronising all tags

This commit is contained in:
Leon Mika 2025-06-25 14:12:31 +02:00
parent 0233a75bf2
commit ff8cd8b65e

View file

@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Push tag to Github
- name: Setup Github remote
run: |
mkdir -p $HOME/.ssh
echo "${{ secrets.PUBLISH_TO_GITHUB_KEY }}" > $HOME/.ssh/id_rsa
@ -24,9 +24,12 @@ jobs:
git config --global user.name 'Leon Mika'
git config --global user.email 'lmika@lmika.org'
git remote add downstream git@github.com:lmika/postlist-for-micro.blog.git
git push downstream refs/tags/$(git name-rev --tags --name-only $(git rev-parse HEAD))
- name: Push main to Github
run: |
git checkout main
git pull origin main
git push downstream main
git push downstream main
- name: Push tags to Github
run: |
git fetch origin --tags
git push downstream --tags