]> git.seodisparate.com - subtitle_displayer/commitdiff
Add forgejo workflow/action to publish
authorStephen Seo <seo.disparate@gmail.com>
Mon, 8 Jul 2024 09:13:26 +0000 (18:13 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Mon, 8 Jul 2024 09:13:26 +0000 (18:13 +0900)
.forgejo/workflows/publish.yml [new file with mode: 0644]

diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml
new file mode 100644 (file)
index 0000000..0ac32f9
--- /dev/null
@@ -0,0 +1,16 @@
+name: Publish to burnedkirby.com/subtitle
+on:
+  push:
+    branches:
+      - 'main'
+
+jobs:
+  publish-site:
+    runs-on: local_self
+    steps:
+      - name: Clone repo
+        run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/subtitle_displayer.git
+      - name: Checkout main
+        run: cd subtitle_displayer && git checkout main
+      - name: Publish index.html
+        run: cp subtitle_displayer/index.html /srv/http/burnedkirby.com/subtitle/