From: Sebastián Ramírez Date: Sat, 15 Feb 2020 12:24:34 +0000 (+0100) Subject: :construction_worker: Add GitHub actions to deploy to Netlify (#983) X-Git-Tag: 0.49.0~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ce50b4684e3b43e9cdffe48abec893aca1a7955;p=thirdparty%2Ffastapi%2Ffastapi.git :construction_worker: Add GitHub actions to deploy to Netlify (#983) --- diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 0000000000..18b4747633 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,29 @@ +name: Build and Deploy to Netlify +on: + push: + pull_request: + types: [opened, synchronize] +jobs: + build: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: "3.7" + - name: Install Flit + run: python3.7 -m pip install flit + - name: Install docs extras + run: python3.7 -m flit install --extras doc + - name: Build MkDocs + run: python3.7 -m mkdocs build + - name: Deploy to Netlify + uses: nwtgck/actions-netlify@v1.0 + with: + publish-dir: './site' + production-branch: master + github-token: ${{ secrets.GITHUB_TOKEN }} + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}