Mention msgspec #46
Workflow file for this run
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: Main | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
push: | |
branches: | |
- main | |
- v1 | |
paths-ignore: | |
- README.md | |
pull_request: | |
branches: | |
- "*" | |
paths-ignore: | |
- README.md | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.11"] | |
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 documentation | |
run: | | |
mkdocs build | |
- name: Fix links | |
run: | | |
chmod +x ./fixlinks.sh | |
./fixlinks.sh | |
- name: Zip built files | |
run: | | |
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 | |
publish: | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' | |
steps: | |
- name: Download a distribution artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: dist | |
path: dist | |
- name: Unzip artifacts | |
run: | | |
7z x -o"site" dist/site.zip | |
- name: Use Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install tools | |
run: | | |
pip install pyazblob | |
- name: Publish distribution 📦 to DEV | |
run: | | |
pyazblob upload --path site/ --account-name "$ACCOUNT_NAME" -cn "\$web" -r -f | |
env: | |
ACCOUNT_NAME: ${{ secrets.DEV_EUW_ACCOUNT_NAME }} | |
PYAZ_ACCOUNT_KEY: ${{ secrets.DEV_EUW_ACCOUNT_KEY }} | |
- name: Publish distribution 📦 to PROD EUW | |
if: github.ref == 'refs/heads/main' | |
run: | | |
pyazblob upload --path site/ --account-name "$ACCOUNT_NAME" -cn "\$web" -r -f | |
env: | |
ACCOUNT_NAME: ${{ secrets.PROD_EUW_ACCOUNT_NAME }} | |
PYAZ_ACCOUNT_KEY: ${{ secrets.PROD_EUW_ACCOUNT_KEY }} | |
- name: Publish distribution 📦 to PROD USE | |
if: github.ref == 'refs/heads/main' | |
run: | | |
pyazblob upload --path site/ --account-name "$ACCOUNT_NAME" -cn "\$web" -r -f | |
env: | |
ACCOUNT_NAME: ${{ secrets.PROD_USE_ACCOUNT_NAME }} | |
PYAZ_ACCOUNT_KEY: ${{ secrets.PROD_USE_ACCOUNT_KEY }} |