From a83cc0081c771f28ac2fd6075b4643b002d25e02 Mon Sep 17 00:00:00 2001 From: Brian Pooe Date: Wed, 9 Aug 2023 12:02:37 +0200 Subject: [PATCH 1/2] fix: wip 4 --- .github/workflows/deploy-demo.yml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml index c3f855e..a2f00b6 100644 --- a/.github/workflows/deploy-demo.yml +++ b/.github/workflows/deploy-demo.yml @@ -1,32 +1,39 @@ name: Deploy demo -on: [workflow_dispatch] +on: [ workflow_dispatch ] permissions: - contents: write + contents: read + pages: write + id-token: write concurrency: group: 'pages' cancel-in-progress: false jobs: - build-and-deploy: - concurrency: ci-${{ github.ref }} + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Checkout 🛎️ uses: actions/checkout@v3 - - name: Install Node 🍜 uses: actions/setup-node@v3 with: node-version: 18 - - - name: Install and Build 🔧 - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + - name: Install Deps 🔧 run: npm i --legacy-peer-deps - name: Build app for production 💥 run: npx nx build ngx-responsive-table-demo -c production - - name: Deploy to gh pages 🛫 - run: npm run deploy:ngx-responsive-table-demo + - name: Setup Pages 🔧 + uses: actions/configure-pages@v3 + - name: Upload artifact 🍜 + uses: actions/upload-pages-artifact@v2 + with: + path: 'dist/apps/ngx-responsive-table-demo' + - name: Deploy to GitHub Pages 💥 + id: deployment + uses: actions/deploy-pages@v2 From 6330960342387af5a3454ba2579ea5b4f66f72d4 Mon Sep 17 00:00:00 2001 From: Brian Pooe Date: Wed, 9 Aug 2023 12:03:01 +0200 Subject: [PATCH 2/2] fix: format --- .github/workflows/deploy-demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml index a2f00b6..ba8560d 100644 --- a/.github/workflows/deploy-demo.yml +++ b/.github/workflows/deploy-demo.yml @@ -1,6 +1,6 @@ name: Deploy demo -on: [ workflow_dispatch ] +on: [workflow_dispatch] permissions: contents: read