-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.27 KB
/
Deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Deploy
on:
repository_dispatch:
push:
branches:
- 'main'
permissions:
contents: write
checks: write
env:
MIRROR_URL: [email protected]:EpitechPromo2026/B-FUN-500-PAR-5-2-glados-axel.humeau.git
jobs:
push_to_mirror:
if: success()
runs-on: ubuntu-latest
name: push_to_mirror
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url:
${{ env.MIRROR_URL }}
ssh_private_key:
${{ secrets.GIT_SSH_PRIVATE_KEY }}
deploy_documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Haskell
uses: haskell-actions/setup@v2
with:
enable-stack: true
- name: Install documentation
run: sudo apt-get install haskell-platform-doc && sudo apt-get install ghc-doc
- name: Create documentation
run: haddock -ohtml --html LobsterLang/src/*
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}