From 2d81fe31ef0ac6f8eb6b1c6cbc64886b89fbf27f Mon Sep 17 00:00:00 2001 From: Alexander Solovyov Date: Thu, 11 May 2023 17:14:57 +0300 Subject: [PATCH] deploy to github pages --- .github/workflows/main.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4f7e76a3e..e44b90daa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: env: GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - build-and-deploy: + build: runs-on: ubuntu-latest steps: - name: Checkout @@ -38,3 +38,24 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Minify + run: make min + + - uses: actions/upload-pages-artifact@v1 + with: + path: _build + + deploy: + needs: build + if: github.ref == 'refs/heads/master' + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1