fix: translations (#3737) #63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mirror to Codeberg | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout full history | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure SSH | |
| run: | | |
| mkdir -p ~/.ssh | |
| cat > ~/.ssh/codeberg <<'EOF' | |
| ${{ secrets.CODEBERG_SSH_KEY }} | |
| EOF | |
| chmod 600 ~/.ssh/codeberg | |
| ssh-keyscan codeberg.org >> ~/.ssh/known_hosts | |
| - name: Verify Codeberg SSH key fingerprint | |
| run: | | |
| ssh-keygen -y -f ~/.ssh/codeberg > ~/.ssh/codeberg.pub | |
| ssh-keygen -lf ~/.ssh/codeberg.pub | |
| - name: Push to Codeberg | |
| run: | | |
| git remote add codeberg git@codeberg.org:kylecorry31/Trail-Sense.git | |
| GIT_SSH_COMMAND="ssh -i ~/.ssh/codeberg -o IdentitiesOnly=yes" \ | |
| git push --mirror codeberg |