File size: 724 Bytes
99f08ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
name: audiocraft_docs
on:
  push:
    branches: [ main ]

jobs:
  run_docs:
    name: Run docs
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: ./.github/actions/audiocraft_build
      - name: Config git
        run: |
          git config --global user.email "defossez@fb.com"
          git config --global user.name "Alexandre Défossez (autodoc)"

      - name: Reset branch
        run: |
          git branch -f gh-docs main
          git checkout gh-docs

      - name: Make docs
        run: |
          . env/bin/activate
          make docs
          git add -f docs
          git commit -m docs

      - name: Push branch
        run: |
          git push -f -u origin gh-docs