Skip to content

Commit 755e3ab

Browse files
authored
Chore: migrate to Netlify (#113)
2 parents 4f42225 + 6287a0c commit 755e3ab

File tree

3 files changed

+13
-47
lines changed

3 files changed

+13
-47
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,19 @@
1-
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2-
name: Deploy Jekyll site to Pages
1+
name: Manually build and deploy site
32

43
on:
54
workflow_dispatch:
6-
push:
7-
branches: ["main"]
8-
9-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10-
permissions:
11-
contents: read
12-
pages: write
13-
id-token: write
14-
15-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
16-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
17-
concurrency:
18-
group: "pages"
19-
cancel-in-progress: false
205

216
jobs:
22-
# Build job
23-
build:
7+
deploy:
248
runs-on: ubuntu-latest
259
steps:
2610
- name: Checkout
2711
uses: actions/checkout@v3
28-
- name: Setup Ruby
29-
uses: ruby/setup-ruby@v1
30-
with:
31-
ruby-version: '3.1'
32-
bundler-cache: true
33-
cache-version: 0 # Increment this number if you need to re-download cached gems
34-
- name: Setup Pages
35-
id: pages
36-
uses: actions/configure-pages@v3
37-
- name: Build with Jekyll
38-
# Outputs to the './_site' directory by default
39-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
40-
env:
41-
JEKYLL_ENV: production
42-
- name: Upload artifact
43-
# Automatically uploads an artifact from the './_site' directory by default
44-
uses: actions/upload-pages-artifact@v2
4512

46-
# Deployment job
47-
deploy:
48-
environment:
49-
name: github-pages
50-
url: ${{ steps.deployment.outputs.page_url }}
51-
runs-on: ubuntu-latest
52-
needs: build
53-
steps:
54-
- name: Deploy to GitHub Pages
55-
id: deployment
56-
uses: actions/deploy-pages@v2
13+
- name: Netlify manual deploy
14+
run: |
15+
npm install -g netlify-cli
16+
netlify deploy --prod --build --context production
17+
env:
18+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
19+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Data + Donuts
22

3+
[`datadonuts.la`](https://datadonuts.la)
4+
5+
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)
6+
37
## Purpose
48

59
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.

0 commit comments

Comments
 (0)