Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Create push-to-git-mirrors.yml

Leendert de Borst42c72c6a126a
diff --git a/.github/workflows/push-to-git-mirrors.yml b/.github/workflows/push-to-git-mirrors.yml
new file mode 100644
index 000000000..a5fe3e8a8
--- /dev/null
+++ b/.github/workflows/push-to-git-mirrors.yml
@@ -0,0 +1,30 @@
+name: Push to Git mirrors
+
+on:
+ push:
+ branches: [main]
+ tags: ['**']
+ workflow_dispatch:
+
+concurrency:
+ group: push-to-git-mirrors
+ cancel-in-progress: false
+
+jobs:
+ codeberg:
+ name: Codeberg
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout full history
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Push to Codeberg
+ env:
+ CODEBERG_USERNAME: ${{ secrets.CODEBERG_USERNAME }}
+ CODEBERG_TOKEN: ${{ secrets.CODEBERG_TOKEN }}
+ run: |
+ git remote add codeberg "https://${CODEBERG_USERNAME}:${CODEBERG_TOKEN}@codeberg.org/aliasvault/aliasvault.git"
+ git push codeberg --force origin/main:refs/heads/main
+ git push codeberg --tags --force