Skip to content

deploy

deploy #57

Workflow file for this run

name: deploy
on:
push:
branches:
- main
release:
types:
- published
env:
PYTHON_VERSION: 3.x
permissions:
contents: write
jobs:
build_site:
name: Build Site
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python runtime
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up build cache
uses: actions/cache@v3
id: cache
with:
key: ${{ runner.os }}-${{ hashFiles('.cache/**') }}
path: .cache
- name: Install Python dependencies
run: |
pip install -r requirements.txt
- if: github.event_name == 'release' && github.event.action == 'published'
name: Deploy site
run: |
mkdocs --version
#mkdocs gh-deploy --force
mike --version
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
mike deploy --push --template go-import/redirect.html --update-aliases ${{ github.event.release.tag_name }} latest stacker
mike set-default --push latest