Skip to content

CI: bugfix attempt. Only create cache on push to main and set the fro… #21

CI: bugfix attempt. Only create cache on push to main and set the fro…

CI: bugfix attempt. Only create cache on push to main and set the fro… #21

Workflow file for this run

name: Deploy mkdocs
on:
push:
branches:
- main
env:
PYTHON_VERSION: "3.10"
PIXI_VERSION: "v0.13.0"
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Pixi
uses: prefix-dev/[email protected]
with:
<<<<<<< Updated upstream

Check failure on line 32 in .github/workflows/deploy_docs.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy_docs.yaml

Invalid workflow file

You have an error in your yaml syntax on line 32
pixi-version: ${{ env.PIXI_VERSION }}
=======
pixi-version: ${{ env.PIXI_version }}
frozen: true
>>>>>>> Stashed changes
cache: true
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
- name: Install repository
run: |
pixi install
- name: Build and deploy docs
run: |
git remote add gh-token "https://SooluThomas:${{ secrets.GH_TOKEN }}@github.com/NOAA-HES-Capstone/icedyno.git"
git fetch gh-token && git fetch gh-token gh-pages:gh-pages
pixi run mkdocs build
pixi run mkdocs gh-deploy --force --clean --verbose --remote-name gh-token