yortnet.com/.forgejo/workflows/demo.yml

27 lines
684 B
YAML
Raw Normal View History

2025-02-03 04:14:09 +00:00
# on push
2025-02-03 02:45:56 +00:00
on: [push]
2025-01-22 20:37:08 +00:00
jobs:
2025-02-03 02:44:56 +00:00
publish:
2025-02-03 02:21:12 +00:00
runs-on: bookworm
2025-02-03 02:48:04 +00:00
steps:
2025-02-03 04:14:09 +00:00
# Checkout main branch
2025-02-03 02:44:56 +00:00
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
2025-02-03 04:14:09 +00:00
# Checkout public directory to paged branch
2025-02-03 02:52:02 +00:00
- name: public branch
run: |
2025-02-03 03:27:59 +00:00
git config --global user.name "Jordan Herzstein"
git config --global user.email "git@jordanherzstein.com"
2025-02-03 04:14:09 +00:00
git checkout pages
2025-02-03 03:24:37 +00:00
git rm -rf .
git checkout main -- public
mv public/* .
git rm -r public/
2025-02-03 03:17:16 +00:00
git add .
git commit -m "deploying page"
2025-02-03 02:53:36 +00:00
git push origin pages
2025-01-22 20:52:06 +00:00