| 1 |
name: Publish Website/Guide |
| 2 |
|
| 3 |
|
| 4 |
on: |
| 5 |
push: |
| 6 |
branches: |
| 7 |
- master |
| 8 |
|
| 9 |
workflow_dispatch: |
| 10 |
|
| 11 |
jobs: |
| 12 |
build-deploy-guide: |
| 13 |
|
| 14 |
if: github.repository_owner == 'MLton' |
| 15 |
|
| 16 |
|
| 17 |
runs-on: ubuntu-latest |
| 18 |
|
| 19 |
|
| 20 |
steps: |
| 21 |
|
| 22 |
- name: Checkout |
| 23 |
uses: actions/checkout@v4 |
| 24 |
with: |
| 25 |
fetch-depth: 0 |
| 26 |
|
| 27 |
- name: Setup SSH |
| 28 |
run: ./.github/scripts/setup_ssh.sh |
| 29 |
env: |
| 30 |
SSH_KEY_RSA: ${{ secrets.MLTON_WEBMASTER_SSH_KEY_RSA }} |
| 31 |
SSH_KEY_ED25519: ${{ secrets.MLTON_WEBMASTER_SSH_KEY_ED25519 }} |
| 32 |
SSH_CONFIG: ${{ secrets.MLTON_WEBMASTER_SSH_CONFIG }} |
| 33 |
SSH_KNOWN_HOSTS: ${{ secrets.MLTON_WEBMASTER_SSH_KNOWN_HOSTS }} |
| 34 |
|
| 35 |
- name: Install guide dependencies |
| 36 |
uses: ./.github/actions/install-guide-dependencies |
| 37 |
|
| 38 |
- name: Build |
| 39 |
run: make -j 2 -C doc/guide mlton.sourceforge.io |
| 40 |
|
| 41 |
- name: Deploy |
| 42 |
run: make -C doc/guide MLTON_SOURCEFORGE_IO_USER=mlton-webmaster upload_mlton.sourceforge.io |