Skip to content

Commit 5ea0065

Browse files
committed
action: serve to BOTH osu and xerxes
1 parent 5de3660 commit 5ea0065

1 file changed

Lines changed: 32 additions & 2 deletions

File tree

.github/workflows/serve-ximera.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,38 @@ jobs:
6969
key: ximeraSERVE-${{ github.ref_name }}-${{ github.sha }}
7070

7171

72-
publish-ximera:
73-
name: Publish Ximera Courses
72+
publish-production:
73+
name: Publish Production (ximera.osu.edu)
74+
needs: build-ximera # Waits for the build job to complete
75+
runs-on: ubuntu-latest
76+
environment: production
77+
steps:
78+
79+
80+
- name: Restore ximera serve cache (only .git)
81+
id: serve-cache-restore
82+
uses: actions/cache/restore@v4
83+
with:
84+
fail-on-cache-miss: true
85+
path: |
86+
xmScripts/**
87+
.git/**
88+
key: ximeraSERVE-${{ github.ref_name }}-${{ github.sha }}
89+
90+
- name: Serve
91+
env:
92+
GPG_KEY: ${{ secrets.GPG_KEY }}
93+
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
94+
XIMERA_URL: ${{ vars.XIMERA_URL }}
95+
XIMERA_NAME: ${{ vars.XIMERA_NAME }}
96+
run: |
97+
git log --oneline --graph --decorate --all -n 10
98+
./xmScripts/xmlatex name
99+
./xmScripts/xmlatex serve -t $XM_TO_PROCESS
100+
echo "✅ Published to $XIMERA_URL$XIMERA_NAME " >> $GITHUB_STEP_SUMMARY
101+
102+
publish-xerxes:
103+
name: Publish to xerxes.ximera.org
74104
needs: build-ximera # Waits for the build job to complete
75105
runs-on: ubuntu-latest
76106
environment: production

0 commit comments

Comments
 (0)