Debian Codegraph @

.github/workflows/guide.yml

raw symbols SCIP
1 name: Publish Website/Guide
2
3 # Controls when the workflow will run
4 on:
5 push:
6 branches:
7 - master
8 # Allows you to run this workflow manually from the Actions tab
9 workflow_dispatch:
10
11 jobs:
12 build-deploy-guide:
13 # Only run on `MLton` organization
14 if: github.repository_owner == 'MLton'
15
16 # The type of runner that the job will run on
17 runs-on: ubuntu-latest
18
19 # Steps represent a sequence of tasks that will be executed as part of the job
20 steps:
21 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
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