Skip to content

Commit 86deefd

Browse files
committed
upload/download entire MathCAT addons dir to capture Rules dir and anything
1 parent ad2830d commit 86deefd

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/automaticRelease.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,15 @@ jobs:
4141
architecture: 'x86'
4242
- name: Set up Rust
4343
run: cargo build --target i686-pc-windows-msvc --release
44-
- name: Upload dll to use with scons
44+
- name: Set up addons dir
45+
run: |
46+
cp libmathcat_py.dll addon/globalPlugins/MathCAT/libmathcat.pyd
47+
sed 's/^import wx\.xrc/# import wx.xrc/' --in-place "addon/globalPlugins/MathCAT/MathCATgui.py" # fix wx file
48+
- name: Upload addons dir to use with scons
4549
uses: actions/upload-artifact@v4
4650
with:
47-
name: MathCAT_dll
48-
path: target/i686-pc-windows-msvc/release/libmathcat_py.dll
51+
name: MathCAT_addons
52+
path: addon/globalPlugins/MathCAT
4953
retention-days: 1
5054

5155
pre-release:
@@ -60,14 +64,13 @@ jobs:
6064
uses: actions/setup-python@v4
6165
with:
6266
python-version: 3.11
63-
- name: Download MathCAT dll
67+
- name: Download MathCAT addons dir
6468
uses: actions/download-artifact@v4
6569
with:
66-
name: MathCAT_dll
70+
name: MathCAT_addons
6771
- shell: bash
6872
run: |
69-
cp libmathcat_py.dll addon/globalPlugins/MathCAT/libmathcat.pyd
70-
sed 's/^import wx\.xrc/# import wx.xrc/' --in-place "addon/globalPlugins/MathCAT/MathCATgui.py" # fix wx file
73+
cp -r addons addon/globalPlugins/MathCAT
7174
- name: Install scons dependencies
7275
run: |
7376
pip install scons markdown

0 commit comments

Comments
 (0)