feat!: change MSRV to 1.97.1 (#260) #10
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure SSH | |
| env: | |
| MIRROR_SSH_KEY: ${{ secrets.MIRROR_SSH_KEY }} | |
| run: | | |
| mkdir -p ~/.ssh | |
| chmod 700 ~/.ssh | |
| printf '%s\n' "$MIRROR_SSH_KEY" > ~/.ssh/id_ed25519 | |
| chmod 600 ~/.ssh/id_ed25519 | |
| ssh-keyscan codeberg.org >> ~/.ssh/known_hosts | |
| chmod 644 ~/.ssh/known_hosts | |
| - name: Push to Codeberg | |
| run: | | |
| git remote add codeberg ssh://git@codeberg.org/beeb/lintspec.git | |
| git push codeberg main | |
| tags=$(git tag --merged main) | |
| if [ -n "$tags" ]; then | |
| git push codeberg $tags | |
| fi |