Main #3
Workflow file for this run
This file contains hidden or 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: Main | |
| on: | |
| workflow_dispatch: | |
| release: | |
| types: [published] | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - README.md | |
| pull_request: | |
| branches: | |
| - "*" | |
| paths-ignore: | |
| - README.md | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.13"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v1 | |
| with: | |
| fetch-depth: 1 | |
| submodules: false | |
| - name: Use Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| pip install -U pip | |
| pip install -r requirements.txt | |
| - name: Build BlackSheep documentation | |
| run: | | |
| cd blacksheep | |
| mkdocs build | |
| - name: Zip built files | |
| run: | | |
| cd blacksheep | |
| mkdir -p .build/blacksheep | |
| mv site/* .build/blacksheep | |
| cd .build | |
| 7z a -r site.zip blacksheep | |
| - name: Upload distribution package | |
| uses: actions/upload-artifact@master | |
| with: | |
| name: dist | |
| path: .build/site.zip |