1 name: Release Documentation
10 description: 'Release Version'
14 description: 'Upload documentation'
21 description: 'Release Version'
25 description: 'Upload documentation'
30 release-documentation:
31 name: Build and Upload Release Documentation
32 runs-on: ubuntu-latest
34 upload: ${{ inputs.upload && !contains(inputs.release-version, 'rc') }}
37 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
39 - name: Setup Python env
40 uses: actions/setup-python@v5
43 cache-dependency-path: './llvm/docs/requirements.txt'
45 - name: Install Dependencies
48 sudo apt-get install -y \
53 pip3 install --user -r ./llvm/docs/requirements.txt
55 - name: Build Documentation
57 GITHUB_TOKEN: ${{ github.token }}
59 ./llvm/utils/release/build-docs.sh -release "${{ inputs.release-version }}" -no-doxygen
61 - name: Create Release Notes Artifact
62 uses: actions/upload-artifact@v3
65 path: docs-build/html-export/
67 - name: Clone www-releases
69 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
71 repository: ${{ github.repository_owner }}/www-releases
75 persist-credentials: false
77 - name: Upload Release Notes
80 GH_TOKEN: ${{ secrets.WWW_RELEASES_TOKEN }}
82 mkdir -p www-releases/${{ inputs.release-version }}
83 mv ./docs-build/html-export/* www-releases/${{ inputs.release-version }}
85 git checkout -b ${{ inputs.release-version }}
86 git add ${{ inputs.release-version }}
87 git config user.email "llvmbot@llvm.org"
88 git config user.name "llvmbot"
89 git commit -a -m "Add ${{ inputs.release-version }} documentation"
90 git push --force "https://$GH_TOKEN@github.com/llvmbot/www-releases.git" HEAD:refs/heads/${{ inputs.release-version }}
91 gh pr create -f -B main -H ${{ inputs.release-version }} -R llvmbot/www-releases