Skip to content

Commit

Permalink
ci: 好吧,放弃 gh-action 里的 mkdocs gh-deploy 了 ...
Browse files Browse the repository at this point in the history
  • Loading branch information
tanbro committed Apr 9, 2024
1 parent f109855 commit 22bbf3b
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,43 +28,36 @@ jobs:
fi
echo "version=${PEP440_VERSION}" | tee -a $GITHUB_OUTPUT
check-mkdocs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.x"
cache: pip # caching pip dependencies
- name: Install project and dependent tools
run: |
python -m pip install -e . -r requirements.txt
- name: Check with ruff
run: |
python -m ruff check .
- name: MkDocs gh-deploy
run: |
git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
python -m mkdocs gh-deploy
pip install ruff && ruff check .
build:
runs-on: ubuntu-latest
needs: [get-version-pep440, check-mkdocs]
needs: [get-version-pep440, check]
if: needs.get-version-pep440.outputs.version != ''
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.x"
cache: "pip" # caching pip dependencies
- name: Install builder
run: pip install build
- name: Build Python distribution
run: python -m build
run: pyproject-build
- name: Upload dist to artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 22bbf3b

Please sign in to comment.