From 3d95f1692f19370c1175ecf20fb019b99f9367bf Mon Sep 17 00:00:00 2001 From: pierreavn Date: Sat, 17 Aug 2024 23:22:51 +0200 Subject: [PATCH] Updated build workflow --- .github/workflows/build.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad5d190..4dfcf96 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,8 +6,7 @@ on: - main jobs: - # Build application - build: + build-and-deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -19,25 +18,12 @@ jobs: run: npm ci - name: Build Angular run: npm run build - - uses: actions/upload-pages-artifact@main + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload Artifact + uses: actions/upload-pages-artifact@v2 with: - name: github-pages path: dist - - # Deploy application - deploy: - needs: build - - permissions: - pages: write - id-token: write - - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - runs-on: ubuntu-latest - steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2