diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34dcdd0..def1ef5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,7 +106,7 @@ jobs: run: testament all - name: Build docs - if: matrix.branch == 'master' + if: github.ref == 'refs/heads/master' run: nimble docs - name: Deploy docs @@ -115,8 +115,8 @@ jobs: # and remove `github.ref == 'refs/heads/master'` below if: | github.event_name == 'push' && github.ref == 'refs/heads/master' && - matrix.target.os == 'linux' && matrix.target.cpu == 'amd64' && - matrix.branch == 'master' + matrix.target.os == 'linux' && matrix.target.cpu == 'amd64' + uses: crazy-max/ghaction-github-pages@v4 with: build_dir: htmlparser/htmldocs @@ -124,3 +124,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +