From 5ecc5de9a6938053a6e3b9779c0cbb7eddcaba2d Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 23 Apr 2024 17:24:49 +0200 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c804383..9a316de 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,7 @@ -name: Deploy to GitHub Pages +name: Build and deploy + +permissions: + contents: write on: push: @@ -6,18 +9,19 @@ on: workflow_dispatch: jobs: - build: + build-and-deploy: + concurrency: ci-${{ github.ref }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v4 - name: Install and Build run: | npm install npm run build - - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@latest + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 with: - branch: gh-pages folder: public