test: fixed workspace spec; skipping 'load - mimic windows' test #933
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs docs.leapp.cloud | |
on: | |
push: | |
branches: | |
- master | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: setup-python-3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: install-dependencies | |
run: | | |
pip install mkdocs-material | |
pip install mkdocs-video | |
pip install mkdocs-img2fig-plugin | |
pip install mkdocs-git-revision-date-plugin | |
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git | |
pip install mkdocs-minify-plugin | |
pip install mike==1.1.2 | |
- name: get-leapp-version | |
run: | | |
echo "PACKAGE_VERSION=$(cat packages/desktop-app/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')" >> $GITHUB_ENV | |
echo "${{env.PACKAGE_VERSION}}" | |
- name: deploy | |
run: | | |
git config --global user.name Alessandro Gaggia | |
git config --global user.email [email protected] | |
git fetch origin gh-pages --depth=1 | |
cd packages/cli | |
npm install | |
npm run prepare-docs | |
cd ../.. | |
mike deploy --no-redirect --force --push --update-aliases ${{env.PACKAGE_VERSION}} latest | |
mike set-default --push latest | |
- name: update-sitemap | |
run: curl https://www.google.com/ping?sitemap=https://docs.leapp.cloud/latest/sitemap.xml |