From 9b68589d876f72d4f0dde82681f0a73b650f317d Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Fri, 28 Feb 2025 11:42:53 +1100 Subject: [PATCH] Swapping v1 and v2 sites --- .../{pages-deploy.yml => documentation.yml} | 4 +-- .github/workflows/pages-mirror.yml | 26 ------------------- 2 files changed, 2 insertions(+), 28 deletions(-) rename .github/workflows/{pages-deploy.yml => documentation.yml} (91%) delete mode 100644 .github/workflows/pages-mirror.yml diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/documentation.yml similarity index 91% rename from .github/workflows/pages-deploy.yml rename to .github/workflows/documentation.yml index 0693ed8..363e393 100644 --- a/.github/workflows/pages-deploy.yml +++ b/.github/workflows/documentation.yml @@ -1,8 +1,8 @@ -name: Build and deploy the pages mirror +name: Build and deploy the documentation on: push: - branches: ["mirror"] + branches: ["v2-docs"] workflow_dispatch: permissions: diff --git a/.github/workflows/pages-mirror.yml b/.github/workflows/pages-mirror.yml deleted file mode 100644 index 9f6f04e..0000000 --- a/.github/workflows/pages-mirror.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Send to the pages mirror - -on: - push: - branches: ["v2-docs"] - workflow_dispatch: - -jobs: - mirror: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Making secret key file - run: touch ~/mirror_secret - - name: Protecting secret key file - run: chmod 600 ~/mirror_secret - - name: Writing key to secret key file - run: echo '${{ secrets.MIRROR_SECRET }}' >> ~/mirror_secret - - name: Tweaking git to use the secret key file - run: git config --add --local core.sshCommand 'ssh -i ~/mirror_secret' - - name: Adding git remote - run: git remote add mirror ${{ secrets.MIRROR_ADDRESS }} - - name: Renaming git branch - run: git branch -m mirror - - name: Pushing to git remote - run: git push -f mirror