From 9cd27100fcc76886f7ceff6a575a0b7f5400a1e9 Mon Sep 17 00:00:00 2001 From: Olya Lesnikova Date: Thu, 14 Dec 2023 20:34:57 +0000 Subject: [PATCH] github pages deploy added --- .github/workflows/main.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc5d0ef..2c75030 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,11 +3,15 @@ run-name: ${{ github.actor }} is running main branch tests 🚀 on: push: - branches: [main] + branches: [main, EO-28/deploy-to-github-pages] env: CI: true +concurrency: + group: "pages" + cancel-in-progress: true + jobs: test: timeout-minutes: 10 @@ -37,3 +41,25 @@ jobs: name: playwright-report path: playwright-report/ retention-days: 1 + deploy: + needs: test + runs-on: ubuntu-latest + permissions: + contents: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Download the build artifacts + uses: actions/download-artifact@v3 + with: + name: dist + path: dist/ + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v3 + with: + artifact_name: dist + timeout: 300000