diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..062b3fda6 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,20 @@ +name: Deploy +on: + issues: + types: [closed, edited, deleted] +jobs: + run: + runs-on: macos-latest + if: ${{ github.event.issue.author_association == 'OWNER' }} + steps: + - name: Cancel Workflow + uses: styfle/cancel-workflow-action@0.11.0 + - name: Checkout + uses: actions/checkout@v3 + - name: Deploy to Vercel + uses: BetaHuhn/deploy-to-vercel-action@v1.7.1 + with: + GITHUB_TOKEN: ${{ secrets.GH_PAT }} + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 449f22249..29b78a76c 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -4,6 +4,8 @@ jobs: run: runs-on: macos-latest steps: + - name: Cancel Workflow Action + uses: styfle/cancel-workflow-action@0.11.0 - uses: actions/checkout@v3 - name: Cache node modules uses: actions/cache@v3 diff --git a/.gitignore b/.gitignore index 2d2012d79..b75f65bf6 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ node_modules yarn-error.log .vscode coverage -.next \ No newline at end of file +.next +.vercel diff --git a/README.md b/README.md index af7478343..4a1bf092f 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,12 @@
-A blog by me! Built with: +A blog! Built with: -- [Gatsby](https://github.com/gatsbyjs/gatsby) -- [TypeScript](https://www.typescriptlang.org/) -- [GraphQL](https://graphql.org/) -- [Emotion](https://github.com/emotion-js/emotion) +- [Next.js](https://github.com/gatsbyjs/gatsby) - [MDX](https://github.com/mdx-js/mdx) - [Vercel](https://vercel.com) -- [React Testing Library](https://github.com/kentcdodds/react-testing-library) diff --git a/src/images/logos/apollo.svg b/src/images/logos/apollo.svg deleted file mode 100644 index 4d2611d68..000000000 --- a/src/images/logos/apollo.svg +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/src/images/logos/breather.webp b/src/images/logos/breather.webp deleted file mode 100644 index 09fec2c6a..000000000 Binary files a/src/images/logos/breather.webp and /dev/null differ diff --git a/src/images/logos/venmo.svg b/src/images/logos/venmo.svg deleted file mode 100644 index 473389d49..000000000 --- a/src/images/logos/venmo.svg +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 1a752f6dd..16318d3f3 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -12,13 +12,62 @@ import image2 from '@/images/photos/image-7.jpg' import image3 from '@/images/photos/image-9.jpg' import image4 from '@/images/photos/image-11.jpg' import image5 from '@/images/photos/image-10.jpg' -import logoApollo from '@/images/logos/apollo.svg' -import logoVenmo from '@/images/logos/venmo.svg' -import logoBreather from '@/images/logos/breather.webp' // import { generateRssFeed } from '@/lib/generateRssFeed' import { getAllArticles } from '@/lib/getAllArticles' import { formatDate } from '@/lib/formatDate' +function ApolloLogo(props) { + return ( + + ) +} +function VenmoLogo(props) { + return ( + + ) +} +function BreatherLogo(props) { + return ( + + ) +} + function MailIcon(props) { return (