Преглед на файлове

Update trigger-site-rebuild.yml

Björn Ritzl преди 3 месеца
родител
ревизия
dada841c6f
променени са 1 файла, в които са добавени 20 реда и са изтрити 5 реда
  1. 20 5
      .github/workflows/trigger-site-rebuild.yml

+ 20 - 5
.github/workflows/trigger-site-rebuild.yml

@@ -1,13 +1,27 @@
 name: Trigger site rebuild
 
-on: [push]
+on:
+  push:
+    branches:
+      - 'master'
 
 jobs:
   build:
-
     runs-on: ubuntu-latest
-
-    steps: [{
+    if: "!contains(github.event.head_commit.message, 'skip-ci')"
+    steps: [
+      { name: 'Checkout', uses: actions/checkout@v4, with: { fetch-depth: 1 } },
+      { name: 'Install Python', uses: actions/setup-python@v4, with: { python-version: 3.10.5, architecture: x64 } },
+      {
+        name: 'Create archives',
+        run: 'python create_archives.py'
+      },
+      {
+        name: 'Release',
+        uses: softprops/action-gh-release@v2,
+        with: { files: "*.zip", make_latest: true }
+      },
+      {
         name: 'Repository dispatch',
         uses: defold/[email protected],
         with: {
@@ -16,4 +30,5 @@ jobs:
             user: '[email protected]',
             action: 'examples'
         }
-    }]
+      }
+    ]