[llvm] workflows: Refactor release-tasks.yml (PR #69523)
Tobias Hieta via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 29 08:23:19 PST 2023
================
@@ -0,0 +1,84 @@
+name: Release Documentation
+
+permissions:
+ contents: read
+
+on:
+ workflow_dispatch:
+ inputs:
+ release-version:
+ description: 'Release Version'
+ required: true
+ type: string
+ upload:
+ description: 'Upload documentation'
+ required: false
+ type: boolean
+
+ workflow_call:
+ inputs:
+ release-version:
+ description: 'Release Version'
+ required: true
+ type: string
+ upload:
+ description: 'Upload documentation'
+ required: false
+ type: boolean
+
+jobs:
+ release-documentation:
+ name: Build and Upload Release Documentation
+ runs-on: ubuntu-latest
+ env:
+ upload: ${{ inputs.upload && !contains(inputs.release-version, 'rc') }}
+ steps:
+ - name: Checkout LLVM
+ uses: actions/checkout at v4
+
+ - name: Install Dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y \
+ doxygen \
+ graphviz \
+ python3-github \
+ ninja-build \
+ texlive-font-utils
+ pip3 install --user -r ./llvm/docs/requirements.txt
+ echo "UPLOAD SETTING: $upload"
----------------
tru wrote:
another stray debug line. fine to keep it, but maybe we should add them in the same place in both workflows.
Also the pip caching here is probably good to use.
https://github.com/llvm/llvm-project/pull/69523
More information about the llvm-commits
mailing list