-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 1.08 KB
/
upload-zip-to-web-generator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: zip and upload model to generator
on:
push:
branches:
- main
workflow_dispatch:
jobs:
package_and_upload:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: rename scad model
run: mv ScadBox.scad model.scad
- name: Create archive
run: zip model.zip model.scad
- name: Checkout repo_b
uses: actions/checkout@v3
with:
repository: 9R/OpenSCAD-Web-Customizer
token: ${{ secrets.STORAGEBOXGENERATORPUSH }}
ref: production
path: StorageBox-Generator
- name: Copy model.zip to StorageBox-Generator Repo
run: cp model.zip StorageBox-Generator
- name: Commit and push model.zip to StorageBox-Generator Repo
run: |
cd StorageBox-Generator
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Action"
git add model.zip
git commit -m "Add latest version from https://github.com/9R/Customizable-OpenSCAD-Storage-Box"
git push