Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jul 6, 2024
1 parent 005a76b commit ef046cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,28 +84,26 @@ jobs:
uses: actions/download-artifact@v4
with:
name: master
path: html

- name: Get artifact for stable
if: ${{ github.event_name != 'pull_request' }}
uses: actions/download-artifact@v4
with:
name: stable
path: html

- name: Get artifact for ltr
if: ${{ github.event_name != 'pull_request' }}
uses: actions/download-artifact@v4
with:
name: ltr
path: html

- name: Push to git
env:
BUILD_TESTING: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || false }}
VERSIONS: ${{ github.event_name == 'pull_request' && '("master")' || needs.build-docs.outputs.QGIS_VERSIONS_LIST }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
echo $(ls -l)
if [[ ${PUBLISH} != "false" ]]; then
./scripts/publish-docs.sh ${VERSIONS}
fi
4 changes: 2 additions & 2 deletions scripts/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ else
if [[ ${BUILD_TESTING} -ne false ]]; then
echo "create folder for PR with master only"
mkdir "PR${BUILD_TESTING}"
cp -R ../html/master/* PR${BUILD_TESTING}/
cp -R ../master/* PR${BUILD_TESTING}/
else
for VERSION in "${VERSIONS[@]}"; do
echo "get ${VERSION}"
rm -rf ${VERSION}
mkdir "${VERSION}"
cp -R ../html/${VERSION}/* ${VERSION}/
cp -R ../${VERSION}/* ${VERSION}/
done
fi
fi
Expand Down

0 comments on commit ef046cc

Please sign in to comment.