Backup: Improved Actions + Docs #11
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: | |
bitbucket: | |
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: sync | |
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 }} | |
codeberg: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
id: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Sync up to Codeberg | |
id: sync | |
uses: yesolutions/mirror-action@master | |
with: | |
REMOTE: 'https://codeberg.org/thearchivalone/BRS-PSP-Research-Initiative.git' | |
GIT_USERNAME: thearchivalone | |
GIT_PASSWORD: ${{ secrets.CODEBERG_PASSWORD }} | |
beanstalk: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
id: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Sync up to Beanstalk | |
id: sync | |
uses: yesolutions/mirror-action@master | |
with: | |
REMOTE: 'https://the-archival-one.git.beanstalkapp.com/brs-psp-research-initiative.git' | |
GIT_USERNAME: thearchivalone | |
GIT_PASSWORD: ${{ secrets.BEANSTALK_PASSWORD }} | |
GitGud: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
id: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Sync up to GitGud | |
id: sync | |
uses: yesolutions/mirror-action@master | |
with: | |
REMOTE: 'https://gitgud.io/thearchivalone/brs-psp-research-initiative.git' | |
GIT_USERNAME: thearchivalone | |
GIT_PASSWORD: ${{ secrets.GITGUD_TOKEN }} | |
GitLab: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
id: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Sync up to GitLab | |
id: sync | |
uses: yesolutions/mirror-action@master | |
with: | |
REMOTE: 'https://gitlab.com/thearchivalone1/BRS-PSP-Research-Initiative.git' | |
GIT_USERNAME: thearchivalone | |
GIT_PASSWORD: ${{ secrets.GITLAB_TOKEN }} | |
sourceforge: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
id: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Sync up to Sourceforge | |
id: sync | |
uses: yesolutions/mirror-action@master | |
with: | |
REMOTE: 'https://[email protected]/p/brs-psp-research-initiative-1/code' | |
GIT_USERNAME: thearchivalone | |
GIT_PASSWORD: ${{ secrets.SF_PASSWORD }} | |
archive: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
id: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Compress Repository | |
id: compress | |
run: | |
git archive --format=tar.gz -o Backup.tar.gz --prefix=$(basename $PWD)/ main | |
- 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-Current | |
files: Backup.tar.gz | |