Skip to content

Commit fc6dde1

Browse files
committed
Add "live" branch
Very much experimental, might f*** the entire repo
1 parent 0ab79fe commit fc6dde1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ts-pages.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
permissions:
99
id-token: write
1010
pages: write
11+
contents: write
1112

1213
jobs:
1314
deploy:
@@ -32,3 +33,16 @@ jobs:
3233
- name: Deploy to GitHub Pages
3334
id: deployment
3435
uses: actions/deploy-pages@v4
36+
37+
- name: Squash merge onto live branch
38+
run: |
39+
git config --global user.name "Page deployment manager"
40+
git config --global user.email "videocreator@outlook.de"
41+
git config --global user.password "${{ github.token }}"
42+
43+
git switch --orphan live
44+
45+
git add .
46+
git commit -m "Update to latest live version"
47+
48+
git push -fu origin live

0 commit comments

Comments
 (0)