mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Swapping v1 and v2 sites
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
name: Build and deploy the pages mirror
|
name: Build and deploy the documentation
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["mirror"]
|
branches: ["v2-docs"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
26
.github/workflows/pages-mirror.yml
vendored
26
.github/workflows/pages-mirror.yml
vendored
@@ -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
|
|
||||||
Reference in New Issue
Block a user