From 65651be0146435ae9591e9dcd1a8b2d73eb475a4 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Fri, 29 Sep 2023 21:16:20 +0000 Subject: [PATCH 1/3] chore(deploy): swap Netlify for GH Pages --- .github/workflows/deploy.yml | 55 ++++++------------------------------ 1 file changed, 9 insertions(+), 46 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0e1eff4..4c78c27 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,56 +1,19 @@ -# Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll site to Pages +name: Manually build and deploy site on: workflow_dispatch: - push: - branches: ["main"] - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false jobs: - # Build job - build: + deploy: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - - name: Setup Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.1' - bundler-cache: true - cache-version: 0 # Increment this number if you need to re-download cached gems - - name: Setup Pages - id: pages - uses: actions/configure-pages@v3 - - name: Build with Jekyll - # Outputs to the './_site' directory by default - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" - env: - JEKYLL_ENV: production - - name: Upload artifact - # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v2 - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + - name: Netlify manual deploy + run: | + npm install -g netlify-cli + netlify deploy --prod --build --context production + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} From 26f94484c09c748d977c26020c0231cb2e2f99ac Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Fri, 29 Sep 2023 21:16:57 +0000 Subject: [PATCH 2/3] chore: remove GH Pages CNAME file --- CNAME | 1 - 1 file changed, 1 deletion(-) delete mode 100644 CNAME diff --git a/CNAME b/CNAME deleted file mode 100644 index 10b1eac..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -datadonuts.la \ No newline at end of file From 6287a0c8dc7c8030a738e9ac61fcd59665c21d81 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Mon, 16 Sep 2024 05:01:09 +0000 Subject: [PATCH 3/3] chore: add netlify build status badge to readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 751386e..bb4c8d1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # Data + Donuts +[`datadonuts.la`](https://datadonuts.la) + +Deployed via [![Netlify Status](https://api.netlify.com/api/v1/badges/8575d097-6b51-4d47-8ed1-2465cef03933/deploy-status)](https://app.netlify.com/sites/data-donuts/deploys) + ## Purpose Data + Donuts is a public sector breakfast series that brings together City and County employees, inspiring them by sharing stories of data and tech projects in a positive and supportive environment.