Skip to content

Commit eeea339

Browse files
committed
Only serve one xourse; only publish on main (TEST)
1 parent 3630eb6 commit eeea339

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/serve-ximera.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
ximera-
4141
4242
43-
- name: Build and publish Ximera courses
43+
- name: Build and publish Ximera courses
4444
env:
4545
# These variables can/should be set at repository level
4646
# If not set, defaults from xmScripts/config.txt or xlatex will be used
@@ -49,10 +49,11 @@ jobs:
4949
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
5050
XIMERA_URL: ${{ vars.XIMERA_URL }}
5151
XIMERA_NAME: ${{ vars.XIMERA_NAME }}${{ github.ref_name }}
52+
XOURSES: "./testXourses/localizationTest.tex"
5253
run: |
5354
ls -alrt
5455
chmod +x xmScripts/xmlatex # Overleaf sync might reset it :-()
55-
./xmScripts/xmlatex ghaction
56+
./xmScripts/xmlatex ghaction $XOURSES
5657
echo "✅ Published to $XIMERA_URL$XIMERA_NAME " >> $GITHUB_STEP_SUMMARY
5758
5859
- name: Setup ximera serve cache (only .git)
@@ -69,6 +70,7 @@ jobs:
6970
name: Publish Ximera Courses
7071
needs: build-ximera # Waits for the build job to complete
7172
runs-on: ubuntu-latest
73+
if: github.ref == 'refs/heads/main'
7274
environment: production # Allows for 'manual review' step
7375
steps:
7476
- name: Restore ximera serve cache (only .git)

0 commit comments

Comments
 (0)