Skip to content

Commit

Permalink
Chore: migrate to Netlify (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman authored Sep 16, 2024
2 parents 4f42225 + 6287a0c commit 755e3ab
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 47 deletions.
55 changes: 9 additions & 46 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 755e3ab

Please sign in to comment.