diff --git a/.github/FUNDING.yml b/.github/workflows/FUNDING.yml similarity index 100% rename from .github/FUNDING.yml rename to .github/workflows/FUNDING.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..b5bc797 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,43 @@ +name: Mirrors + +# Push to all private (configured) mirrors. + +on: [ push, create, delete ] + +concurrency: + group: git-mirror + +jobs: + gitlab: + runs-on: ubuntu-latest + steps: + - name: GitLab + uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + with: + source-repo: "git@github.com:Anon-Planet/thgtoa.git" + destination-repo: "git@gitlab.com:{{ secrets.GITLAB_REPO_USERNAME }}/thgtoa.git" + + codeberg: + runs-on: ubuntu-latest + steps: + - name: Codeberg + uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + with: + source-repo: "git@github.com:Anon-Planet/thgtoa.git" + destination-repo: "git@codeberg.org:{{ secrets.CODEBERG_REPO_USERNAME }}/thgtoa.git" + + disroot: + runs-on: ubuntu-latest + steps: + - name: Disroot + uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + with: + source-repo: "git@github.com:Anon-Planet/thgtoa.git" + destination-repo: "git@git.disroot.org:{{ secrets.DISROOT_REPO_USERNAME }}/thgtoa.git" + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ec6c066 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +on: + push: + tags: + - "v*" + +jobs: + upload-files: + runs-on: ubuntu-latest + strategy: + matrix: + include: + - name: "THGTOA" + branch: "master" + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ matrix.branch }} + + - name: Scheduled Release + run: | + zip -rv ${{ matrix.name }}.zip _site + + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: | + ${{ matrix.name }}.zip