Backup: Codeberg + Archive.org Init #4
This file contains 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: Sync repository to mirrors | |
on: | |
push: | |
tags-ignore: | |
- '*' | |
branches: | |
- '*' | |
jobs: | |
sync: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
id: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Sync up to Bitbucket | |
id: bitbucket | |
uses: quantran-novobi/sync-up-to-bitbucket-action@v1 | |
with: | |
bitbucket_repository_name: brs-psp-research-initiative | |
bitbucket_workspace_name: the_archival_one | |
bitbucket_access_token: ${{ secrets.BITBUCKET_ACCESS_TOKEN }} | |
- name: Sync up to Codeberg | |
id: codeberg | |
uses: yesolutions/mirror-action@master | |
with: | |
REMOTE: 'https://codeberg.org/thearchivalone/BRS-PSP-Research-Initiative.git' | |
GIT_USERNAME: thearchivalone | |
GIT_PASSWORD: ${{ secrets.CODEBERG_PASSWORD }} | |
- name: Sync up to Internet Archive | |
id: ia_sync | |
uses: qoijjj/internet-archive-upload@v7 | |
with: | |
access-key: ${{ secrets.IA_ACCESS_KEY }} | |
secret-key: ${{ secrets.IA_SECRET_KEY }} | |
identifier: BRS-Research-Initiative | |
files: brs-psp-research-initiative | |