Edit by hello-binit deployed refs/heads/0.3 #3
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: Auto Deploy | |
run-name: Edit by ${{ github.actor }} deployed ${{ github.ref }} | |
on: | |
push: | |
branches: | |
- '*.*' | |
jobs: | |
Mkdocs-Mike-Deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print out debug info | |
run: echo "Repo ${{ github.repository }} | Branch ${{ github.ref }} | Runner ${{ runner.os }} | Event ${{ github.event_name }}" | |
- name: Check out docs repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Setup Python3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Pip dependencies | |
run: python3 -m pip install -r ./requirements.txt | |
- name: Configure Git user | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
- name: Save Mike version | |
run: echo "mike_version=$(echo ${GITHUB_REF#refs/heads/})" >> "$GITHUB_ENV" | |
- name: Deploy with Mike | |
run: | | |
mike deploy --push $mike_version |