File tree Expand file tree Collapse file tree 2 files changed +22
-57
lines changed Expand file tree Collapse file tree 2 files changed +22
-57
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,11 @@ permissions:
9
9
jobs :
10
10
11
11
build-and-test :
12
- name : Build site
12
+ name : Deploy site on ${{ matrix.target }}
13
13
runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ target : [haskellorg, githubpages]
14
17
15
18
steps :
16
19
- name : Install GHC 9.2.5
39
42
working-directory : message-index
40
43
run : cabal run site build
41
44
42
- - name : Deploy
45
+ - name : Deploy on Github Pages
43
46
uses : peaceiris/actions-gh-pages@v3
44
- if : ${{ github.ref == 'refs/heads/main' }}
47
+ if : ${{ (matrix.target == 'githubpages') && ( github.ref == 'refs/heads/main') }}
45
48
with :
46
49
github_token : ${{ secrets.GITHUB_TOKEN }}
47
50
publish_dir : ./message-index/_site
51
+
52
+ - name : Deploy on Haskell.org
53
+ if : ${{ matrix.target == 'haskellorg' }}
54
+ shell : bash
55
+ env :
56
+ # Create the secret with:
57
+ #
58
+ # Settings -> Secrets -> New Repository Secret ->
59
+ #
60
+ # Name: ERRORS_HASKELL_ORG_SSH_KEY
61
+ # Value: The text of the ssh private key
62
+ ERRORS_HASKELL_ORG_SSH_KEY : ${{ secrets.ERRORS_HASKELL_ORG_SSH_KEY }}
63
+ run : |
64
+ sudo apt-get install -y lftp
65
+ ./deploy.sh --DEPLOY-IT-LIVE
66
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments