diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..e446dc3 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,46 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: ["main"] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Download gh + run: | + curl -sL "https://github.com/cli/cli/releases/download/v2.63.2/gh_2.63.2_linux_amd64.tar.gz" -o /tmp/gh.tar.gz + tar -xzf /tmp/gh.tar.gz -C /tmp/ + + - name: Enable Pages via API + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + /tmp/gh_2.63.2_linux_amd64/bin/gh api --method POST repos/${{ github.repository }}/pages \ + --field source[branch]=main --field source[path]='/' || echo "Create failed, trying update..." + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: '.' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/CNAME b/CNAME deleted file mode 100644 index c6053ae..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -MiamiAlumniChicagolandPresident.brendan.greenlee.website diff --git a/apple-touch-icon.png b/apple-touch-icon.png deleted file mode 100644 index 602aab4..0000000 Binary files a/apple-touch-icon.png and /dev/null differ diff --git a/favicon-16.png b/favicon-16.png deleted file mode 100644 index c542cdf..0000000 Binary files a/favicon-16.png and /dev/null differ diff --git a/favicon-32.png b/favicon-32.png deleted file mode 100644 index bb905ff..0000000 Binary files a/favicon-32.png and /dev/null differ diff --git a/favicon-64.png b/favicon-64.png deleted file mode 100644 index 06aeadb..0000000 Binary files a/favicon-64.png and /dev/null differ diff --git a/favicon-custom.png b/favicon-custom.png deleted file mode 100644 index aa900c8..0000000 Binary files a/favicon-custom.png and /dev/null differ diff --git a/favicon.png b/favicon.png deleted file mode 100644 index 48c440a..0000000 Binary files a/favicon.png and /dev/null differ diff --git a/index.html b/index.html index 0020bdf..238d172 100644 --- a/index.html +++ b/index.html @@ -9,31 +9,26 @@ - - +