Prechádzať zdrojové kódy

github ci: add deploy-c3 step to bindings.yml

Andre Weissflog 5 mesiacov pred
rodič
commit
32a2c34b0c
1 zmenil súbory, kde vykonal 21 pridanie a 0 odobranie
  1. 21 0
      .github/workflows/gen_bindings.yml

+ 21 - 0
.github/workflows/gen_bindings.yml

@@ -500,3 +500,24 @@ jobs:
           git add -A
           git diff-index --quiet HEAD || git commit -m "updated (https://github.com/floooh/sokol/commit/${{ github.sha }})"
           git push
+
+  deploy-c3:
+    needs: test-c3
+    if: github.ref == 'refs/heads/master'
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@main
+        with:
+          repository: floooh/sokol-c3
+          ssh-key: ${{ secrets.GHACTIONS_C3_PUSH }}
+      - uses: actions/download-artifact@main
+        with:
+          name: ignore-me-c3
+          path: sokol.c3l
+      - name: "commit and push"
+        run: |
+          git config user.email "none"
+          git config user.name "GH Action"
+          git add -A
+          git diff-index --quiet HEAD || git commit -m "updated (https://github.com/floooh/sokol/commit/${{ github.sha }})"
+          git push