migrate away from codeberg

This commit is contained in:
soap 2024-04-09 08:25:31 -05:00
parent e90f18aa84
commit 730771f8e1
3 changed files with 6 additions and 45 deletions

View file

@ -1,38 +0,0 @@
name: Mirror to Codeberg
on:
workflow_dispatch:
push:
jobs:
codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN }}
- name: check for 404
run: |
url="https://codeberg.org/diyhrt/pages"
status=$(curl -o /dev/null -s -w "%{http_code}" $url)
if [ $status -eq 404 ]; then
echo "Got 404. Exiting."
curl -H "Content-Type: application/json" -d '{"content": "${{ secrets.DISCORD_USER_ID }} $URL returned 404"}' ${{ secrets.WEBHOOK_URL }}
exit 1
fi
- uses: pixta-dev/repository-mirroring-action@v1.1.1
with:
target_repo_url: "git@codeberg.org:diyhrt/pages.git"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
secret_mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN }}
- uses: pixta-dev/repository-mirroring-action@v1.1.1
with:
target_repo_url: "${{ secrets.SECRET_MIRROR_URL }}"
ssh_private_key: ${{ secrets.SECRET_SSH_PRIVATE_KEY }}

View file

@ -6,13 +6,12 @@ This an archive of diyhrt.cafe, diyhrt.wiki, diyhrt.market, hrt.coffee, transfem
https://hrt.soap.systems https://hrt.soap.systems
### Locally ### Locally
Use [this link](https://codeberg.org/diyhrt/pages/archive/main.zip) and it will start a download. To access the archive, open index.html with your browser. Use [this link](https://github.com/soapingtime/diyhrt/archive/refs/heads/main.zip) and it will start a download. To access the archive, open index.html with your browser.
## Mirroring ## Mirroring
I encourage you to start your own mirror, and open an issue or pull request if you would like it added to the readme. If you decide create a public mirror, it should be automatically updated by simply running `git pull` at least once a week (you can do this with a [simple cron job](https://stackoverflow.com/a/69553820)). Feel free to open an issue if you need any help. I encourage you to start your own mirror, and open an issue or pull request if you would like it added to the readme. If you decide create a public mirror, it should be automatically updated by simply running `git pull` at least once a week (you can do this with a [simple cron job](https://stackoverflow.com/a/69553820)). Feel free to open an issue if you need any help.
This project is currently hosted on Codeberg and mirrored at [GitHub](https://soapingtime.github.io/diyhrt), [git.disroot.org](https://git.disroot.org/diyhrt/mirrors), [git.gay](https://git.gay/hrt/pages) [(html version)](https://hrt.pages.gay/) and [hrt.wtf](https://hrt.wtf) This project is currently hosted on Github and mirrored at [git.disroot.org](https://git.disroot.org/diyhrt/mirrors), [git.gay](https://git.gay/hrt/pages) [(html version)](https://hrt.pages.gay/) and [hrt.wtf](https://hrt.wtf)
## Contact me ## Contact me
If you want to contact me about something here, start an issue on [GitHub](https://github.com/soapingtime/diyhrt/issues), [Codeberg](https://codeberg.org/diyhrt/pages/issues) or send me an email. If you want to contact me about something here, start an issue on [GitHub](https://github.com/soapingtime/diyhrt/issues) or [send me an email](mailto:soaper@disroot.org).

View file

@ -27,11 +27,11 @@
<h3>Online, no download required.</h3> <h3>Online, no download required.</h3>
<p>https://hrt.soap.systems</p> <p>https://hrt.soap.systems</p>
<h3>Locally</h3> <h3>Locally</h3>
<p>Use <a href="https://codeberg.org/diyhrt/pages/archive/main.zip" rel="nofollow">this link</a> and it will start a download. To access the archive, open index.html with your browser.</p> <p>Use <a href="https://github.com/soapingtime/diyhrt/archive/refs/heads/main.zip" rel="nofollow">this link</a> and it will start a download. To access the archive, open index.html with your browser.</p>
<h2>Mirroring</h2> <h2>Mirroring</h2>
<p>I encourage you to start your own mirror, and open an issue or pull request if you would like it added to the readme. If you decide create a public mirror, it should be automatically updated by simply running <code>git pull</code> at least once a week (you can do this with a <a href="https://stackoverflow.com/a/69553820" rel="nofollow">simple cron job</a>). Feel free to open an issue if you need any help.</p> <p>I encourage you to start your own mirror, and open an issue or pull request if you would like it added to the readme. If you decide create a public mirror, it should be automatically updated by simply running <code>git pull</code> at least once a week (you can do this with a <a href="https://stackoverflow.com/a/69553820" rel="nofollow">simple cron job</a>). Feel free to open an issue if you need any help.</p>
<p>This project is currently hosted on Codeberg and mirrored at <a href="https://soapingtime.github.io/diyhrt" rel="nofollow">GitHub</a>, <a href="https://git.disroot.org/diyhrt/mirrors" rel="nofollow">git.disroot.org</a>, <a href="https://git.gay/hrt/pages" rel="nofollow">git.gay</a> <a href="https://hrt.pages.gay/" rel="nofollow">(html version)</a> and <a href="https://hrt.wtf" rel="nofollow">hrt.wtf</a></p> <p>This project is currently hosted on Github and mirrored at <a href="https://git.disroot.org/diyhrt/mirrors" rel="nofollow">git.disroot.org</a>, <a href="https://git.gay/hrt/pages" rel="nofollow">git.gay</a> <a href="https://hrt.pages.gay/" rel="nofollow">(html version)</a> and <a href="https://hrt.wtf" rel="nofollow">hrt.wtf</a></p>
<h2>Contact me</h2> <h2>Contact me</h2>
<p>If you want to contact me about something here, start an issue on <a href="https://github.com/soapingtime/diyhrt/issues" rel="nofollow">GitHub</a>, <a href="https://codeberg.org/diyhrt/pages/issues" rel="nofollow">Codeberg</a> or send me an email.</p> <p>If you want to contact me about something here, start an issue on <a href="https://github.com/soapingtime/diyhrt/issues" rel="nofollow">GitHub</a> or <a href="mailto:soaper@disroot.org">send me an email</a>.</p>
</body> </body>
</html> </html>