diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 00000000..e356f976 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,31 @@ +name: 🪞 Push to Mirrors + +on: [ push, delete, create ] + +# Ensures that only one mirror task will run at a time. +concurrency: + group: git-mirror + +jobs: + git-mirror: + runs-on: ubuntu-latest + steps: + - name: Mirror to GitLab + uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.ACTIONS_SSH_KEY }} + with: + source-repo: "git@github.com:privacyguides/privacyguides.org.git" + destination-repo: "git@gitlab.com:privacyguides/privacyguides.org.git" + + - name: Cleanup + run: | + sudo rm -rf privacyguides.org.git + + - name: Mirror to Codeberg + uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.ACTIONS_SSH_KEY }} + with: + source-repo: "git@github.com:privacyguides/privacyguides.org.git" + destination-repo: "git@codeberg.org:privacyguides/privacyguides.org.git" diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 16cf5b95..7f20e581 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -3,6 +3,10 @@ name: 🔂 Surge PR Preview on: pull_request_target: types: [opened, synchronize, reopened] + +# Ensures that only one mirror task will run at a time. +concurrency: + group: surge-sh jobs: preview: diff --git a/README.md b/README.md index 20465ef1..f5a45f87 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,13 @@ Our current list of team members can be found [here](https://github.com/orgs/pri - Browse our [open issues](https://github.com/privacyguides/privacyguides.org/issues) to see what needs to be updated - View some contribution tips on our [contributor's wiki](https://github.com/privacyguides/privacyguides.org/wiki) +## Mirrors + +[![GitHub](https://img.shields.io/static/v1?logo=github&label=&message=GitHub&color=000&style=for-the-badge)](https://github.com/privacyguides/privacyguides.org) +[![Gitea](https://img.shields.io/static/v1?logo=gitea&label=&message=Gitea&color=000&style=for-the-badge)](https://code.privacyguides.dev/privacyguides/privacyguides.org) +[![GitLab](https://img.shields.io/static/v1?logo=gitlab&label=&message=GitLab&color=000&style=for-the-badge)](https://gitlab.com/privacyguides/privacyguides.org) +[![Codeberg](https://img.shields.io/static/v1?logo=codeberg&label=&message=Codeberg&color=000&style=for-the-badge)](https://codeberg.org/privacyguides/privacyguides.org) + ## Developing 1. Clone this repository and submodules: `git clone --recurse-submodules https://github.com/privacyguides/privacyguides.org`