diff --git a/.gitea/workflows/convert-html-docs.yaml b/.gitea/workflows/convert-html-docs.yaml
index c5d0c84c6..fa6cd090c 100644
--- a/.gitea/workflows/convert-html-docs.yaml
+++ b/.gitea/workflows/convert-html-docs.yaml
@@ -25,8 +25,8 @@ jobs:
install-convertor:
runs-on: ubuntu-latest
- outputs:
- cache-key: ${{ steps.cache-key.outputs.key }}
+ # outputs:
+ # cache-key: ${{ steps.cache-key.outputs.key }}
steps:
- name: Checkout Code
uses: actions/checkout@v3
@@ -36,16 +36,16 @@ jobs:
with:
python-version: '3.10' # adjust version as needed
- - name: Generate cache key
- id: cache-key
- run: |
- echo "key=venv-${{ hashFiles('requirements.txt') }}" >> $GITHUB_OUTPUT
+ # - name: Generate cache key
+ # id: cache-key
+ # run: |
+ # echo "key=venv-${{ hashFiles('requirements.txt') }}" >> $GITHUB_OUTPUT
- - name: Cache venv
- uses: actions/cache@v3
- with:
- path: ./venv
- key: ${{ steps.cache-key.outputs.key }}
+ # - name: Cache venv
+ # uses: actions/cache@v3
+ # with:
+ # path: ./venv
+ # key: ${{ steps.cache-key.outputs.key }}
- name: Clone doc-convertor from Gitea
env:
@@ -96,7 +96,7 @@ jobs:
generate-docs:
- needs: install-convertor
+ # needs: install-convertor
runs-on: ubuntu-latest
env:
DOCS_UPDATE_DATA_FILE: metadata.yaml
@@ -111,11 +111,25 @@ jobs:
with:
python-version: 3.10
- - name: Restore venv from cache
- uses: actions/cache@v3
- with:
- path: ./venv
- key: ${{ needs.install-convertor.outputs.cache-key }}
+ # - name: Restore venv from cache
+ # uses: actions/cache@v3
+ # with:
+ # path: ./venv
+ # key: ${{ needs.install-convertor.outputs.cache-key }}
+
+ - name: Clone doc-convertor from Gitea
+ env:
+ GITEA_TOKEN: ${{ secrets.TEST_TOKEN }}
+ GITEA_SERVER_URL: ${{ gitea.server_url }}
+ run: |
+ git clone https://${GITEA_TOKEN}@gitea.eco.tsi-dev.otc-service.com/docs/doc-convertor.git
+
+ - name: Create virtualenv and install package in editable mode
+ run: |
+ python -m venv ~/.venv
+ source ~/.venv/bin/activate
+ pip install --upgrade pip
+ pip install -e ./doc-convertor
- name: Install PyYAML (to parse YAML files)
run: pip install pyyaml