From b6ecd8bd6104310a02b2bf3bfb141ae80c6b9fba Mon Sep 17 00:00:00 2001 From: Vendula <113131295+wendykr@users.noreply.github.com> Date: Tue, 12 Dec 2023 17:11:39 +0100 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..e1996b7 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,44 @@ +name: Deploy static content to Pages + +on: + push: + branches: ["main"] + + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Node.js setup + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: "npm" + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: "dist" + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1