From aad68e04eb2a52f25a3071f0bc719c98261643f9 Mon Sep 17 00:00:00 2001 From: Jean Luis Urena Date: Fri, 24 Nov 2023 20:10:49 -0500 Subject: [PATCH] Re-attempting deploy --- .github/workflows/build.yml | 45 ++++++++++++++++++++----------------- CNAME | 1 + 2 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 CNAME diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e66593..74f1558 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,21 @@ -name: Build Website - +name: Build and Deploy on: + workflow_dispatch: push: - branches: - - main + branches: main +concurrency: + group: pages + cancel-in-progress: false +permissions: + contents: read + pages: write + id-token: write jobs: build: - name: Build gh-page + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + name: Build runs-on: ubuntu-latest steps: - name: Checkout @@ -22,21 +31,15 @@ jobs: run: npm run build - name: Setup File System run: > - mv build/ /tmp/ && + mv CNAME build/ /tmp/ && rm -rf * && - mv /tmp/build/ . && - mv build/index.html . && - mv build public && - ls - - name: Commit files - run: | - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - git add -A - git commit -m "build" || true - - name: Push changes - uses: ad-m/github-push-action@master + mv /tmp/CNAME /tmp/build/* ./ + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-page - force: true + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..0db7e6e --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +www.monicauxui.design