From c73504743843846e84d3169a0025ecc1d8bf3d85 Mon Sep 17 00:00:00 2001 From: Scott Griv Date: Sun, 11 Feb 2024 14:18:30 -0500 Subject: [PATCH] Update gh-pages deploy --- .github/workflows/gh-pages.yml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..3874995 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,40 @@ +name: Build and Deploy + +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '18' + + - name: Install Dependencies + run: npm install + + - name: Build + run: npm run build -- --output-path=dist/angular-github_user_info # Adjust based on your Angular project name + + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: dist/angular-github_user_info # Make sure this matches your Angular build output path + + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4