Skip to content

Commit f6f4936

Browse files
author
Bastien Orivel
committed
Use newly exposed TC_TASK_DIR instead of GITHUB_WORKSPACE
That is even better because now we can have artifacts
1 parent 4e9d597 commit f6f4936

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tasks/libreoffice.py

+6-8
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def create_libreoffice_tasks():
3939
mv *.dll lib/win32-amd64
4040
zip -r divvunspell.zip *
4141
rm -Rf lib
42-
mv divvunspell.zip $GITHUB_WORKSPACE/divvunspell.oxt
43-
cd $GITHUB_WORKSPACE
42+
mv divvunspell.zip $TC_TASK_DIR/divvunspell.oxt
43+
cd $TC_TASK_DIR
4444
tar caf divvunspell.oxt.txz divvunspell.oxt
4545
"""
4646
),
@@ -56,13 +56,11 @@ def create_libreoffice_tasks():
5656
"repo": PAHKAT_REPO + "devtools/",
5757
"version": "${{ steps.version.outputs.version }}",
5858
"channel": "${{ steps.version.outputs.channel }}",
59-
"payload-path": "$GITHUB_WORKSPACE/divvunspell.oxt.txz",
59+
"payload-path": "$TC_TASK_DIR/divvunspell.oxt.txz",
6060
},
6161
),
6262
)
6363
.with_gha("Prepare macos OXT", GithubActionScript("""
64-
rm -f *.oxt
65-
rm -f *.txz
6664
mkdir -p lib/darwin-x86_64
6765
mkdir -p lib/darwin-arm64
6866
"""))
@@ -98,8 +96,8 @@ def create_libreoffice_tasks():
9896
"""
9997
zip -r divvunspell.zip *
10098
rm -Rf lib
101-
mv divvunspell.zip $GITHUB_WORKSPACE/divvunspell-macos.oxt
102-
cd $GITHUB_WORKSPACE
99+
mv divvunspell.zip $TC_TASK_DIR/divvunspell-macos.oxt
100+
cd $TC_TASK_DIR
103101
tar caf divvunspell-macos.oxt.txz divvunspell-macos.oxt
104102
"""
105103
),
@@ -115,7 +113,7 @@ def create_libreoffice_tasks():
115113
"repo": PAHKAT_REPO + "devtools/",
116114
"version": "${{ steps.version.outputs.version }}",
117115
"channel": "${{ steps.version.outputs.channel }}",
118-
"payload-path": "$GITHUB_WORKSPACE/divvunspell-macos.oxt.txz",
116+
"payload-path": "$TC_TASK_DIR/divvunspell-macos.oxt.txz",
119117
},
120118
),
121119
)

0 commit comments

Comments
 (0)