Add post: 从 Rust 到 Zig,我写了一个小型 KV 数据库后,终于理解 Zig 到底'怪'在哪 (#114) #235
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 | |
| on: | |
| push: | |
| branches: | |
| - main** | |
| workflow_dispatch: | |
| jobs: | |
| codeberg: | |
| if: github.repository_owner == 'zigcc' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - run: | | |
| git push --tags --force https://${{ secrets.CBTOKEN }}@codeberg.org/jiacai2050/zigcc.git "refs/remotes/origin/*:refs/heads/*" | |
| atomgit: | |
| if: github.repository_owner == 'zigcc' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pixta-dev/repository-mirroring-action@v1 | |
| with: | |
| target_repo_url: https://jiacai2050:${{ secrets.ATOMGIT_TOKEN }}@atomgit.com/${{ github.repository }}.git |