Skip to content

Commit

Permalink
Remove netlify references (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell authored Oct 13, 2020
1 parent 7e1ac36 commit 2d1bb5b
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 109 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<h1><code>aless.co</code> &mdash; alessia's blog</h1>

<p>
<a href="https://app.netlify.com/sites/alessia/deploys" title="Netlify Status"><img src="https://api.netlify.com/api/v1/badges/4245956d-8b21-4b31-a405-05ca5fa8799a/deploy-status"/></a>
<a href="https://github.com/alessbell/aless.co/actions?query=workflow%3ATests" title="Tests"><img src="https://github.com/alessbell/aless.co/workflows/Tests/badge.svg"/></a>
<a href="https://codecov.io/gh/alessbell/aless.co" title="Code Coverage"><img src="https://codecov.io/gh/alessbell/aless.co/branch/main/graph/badge.svg"/></a>
<a href="https://github.com/prettier/prettier" title="Prettier Code Formatting"><img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-round"/></a>
Expand All @@ -18,5 +17,5 @@ A blog by me! Built with:
- [GraphQL](https://graphql.org/)
- [Emotion](https://github.com/emotion-js/emotion)
- [MDX](https://github.com/mdx-js/mdx)
- [Netlify](https://netlify.com)
- [Vercel](https://vercel.com)
- [React Testing Library](https://github.com/kentcdodds/react-testing-library)
2 changes: 1 addition & 1 deletion __tests__/components/footer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ beforeEach(() => {

describe('Footer', () => {
test('renders', () => {
render(<Footer commit="master" repository={REPOSITORY} />);
render(<Footer commit="main" repository={REPOSITORY} />);
expect(screen.getByText(/twitter/)).toHaveAttribute(
'href',
'https://twitter.com/alessbell'
Expand Down
2 changes: 1 addition & 1 deletion __tests__/config/metadata-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const metadataMock = {
siteMetadata: {
title: `anti/pattern`,
repository: `https://github.com/alessbell/aless.co`,
commit: `master`,
commit: `main`,
siteUrl: `https://aless.co`,
},
},
Expand Down
6 changes: 3 additions & 3 deletions content/blog/resume-as-code/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ draft: false
keywords: ['programming']
---

I avoid brand new tech until I have an itch to scratch: a small, self-contained problem that seems it might lend itself nicely to $someTool. I'm usually unsure I'll be able to achieve what I have in mind. But _maybe..._
I avoid brand new tech until I have an itch to scratch: a small, self-contained problem that seems it might lend itself nicely to \$someTool. I'm usually unsure I'll be able to achieve what I have in mind. But _maybe..._

This time, the problem was something that had annoyed me for as long as I'd been employed: resumes. Not the fact of them, or even writing them, necessarily. Just **managing different versions**.

Expand Down Expand Up @@ -34,7 +34,7 @@ I had no idea how feasible this all was, still knowing little to nothing about t

tl;dr my ideal workflow was possible, so I built it 🐙💜

If you'd like to browse the code, steps 1 and 2 are achieved by the [main workflow in `alessbell/resume`](https://github.com/alessbell/resume/blob/master/.github/workflows/main.yml). Step 3 is handled by actions in this blog's repository, namely [`/commit-resume`](https://github.com/alessbell/aless.co/blob/main/commit-resume/entrypoint.sh). For a walk-through of the code, keep reading 😎
If you'd like to browse the code, steps 1 and 2 are achieved by the [main workflow in `alessbell/resume`](https://github.com/alessbell/resume/blob/main/.github/workflows/main.yml). Step 3 is handled by actions in this blog's repository, namely [`/commit-resume`](https://github.com/alessbell/aless.co/blob/main/commit-resume/entrypoint.sh). For a walk-through of the code, keep reading 😎

![The first PR created by my GitHub action: updating a PDF with the one it downloaded from the latest automated release in another repository ✨](./resume-pr-1.png)

Expand Down Expand Up @@ -80,7 +80,7 @@ In order to keep the version of my resume displayed on this website up-to-date,

Luckily, such an event exists: [`repository_dispatch`](https://developer.github.com/v3/repos/#create-a-repository-dispatch-event) triggers a webhook event "when you want to trigger a GitHub Actions workflow for activity that happens outside of GitHub," or, in this case, in a different repository's action. A simple curl request with the correct auth token, headers and body does the trick.

This is the [whole bash script](https://github.com/alessbell/resume/blob/master/ping-repo/entrypoint.sh) from `alessbell/resume/ping-repo`:
This is the [whole bash script](https://github.com/alessbell/resume/blob/main/ping-repo/entrypoint.sh) from `alessbell/resume/ping-repo`:

```bash:title=entrypoint.sh
#!/bin/bash
Expand Down
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const config = {
siteUrl: `https://aless.co`,
description: `Alessia Bellisario is a software engineer in NYC writing about code, keyboards and drawing machines`,
repository: `https://github.com/alessbell/aless.co`,
commit: process.env.COMMIT_REF || `master`,
commit: process.env.VERCEL_GITHUB_COMMIT_SHA || `main`,
},
plugins: [
`@pauliescanlon/gatsby-mdx-embed`,
Expand Down
2 changes: 0 additions & 2 deletions netlify.toml

This file was deleted.

Loading

1 comment on commit 2d1bb5b

@vercel
Copy link

@vercel vercel bot commented on 2d1bb5b Oct 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.