From cad298582d38e29b735015e27020703c8b40cc6d Mon Sep 17 00:00:00 2001 From: Sandeep Kadam Date: Mon, 19 Aug 2024 23:22:45 +0530 Subject: [PATCH] Update static.yml steps refactor --- .github/workflows/static.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index a424fc0..4e57fbf 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} permissions: contents: read pages: write @@ -34,15 +37,10 @@ jobs: CI: true GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Upload artifact - id: github-pages uses: actions/upload-artifact@v4 with: - name: "github-pages" # Upload entire repository path: 'build' - name: Deploy to GH Pages 🚀 id: deployment - uses: actions/deploy-pages@v4 - with: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - publish_dir: public + uses: actions/deploy-pages@v4