From a8cc873ab643f01634ba28ff2f16cc51207dc222 Mon Sep 17 00:00:00 2001 From: Alessia Bellisario Date: Mon, 17 Oct 2022 21:24:47 -0400 Subject: [PATCH] chore: use cancel-workflow-action (#1720) --- .github/workflows/deploy.yml | 20 ++++++++ .github/workflows/workflow.yml | 2 + .gitignore | 3 +- README.md | 10 +--- src/images/logos/apollo.svg | 3 -- src/images/logos/breather.webp | Bin 8784 -> 0 bytes src/images/logos/venmo.svg | 3 -- src/pages/index.jsx | 85 ++++++++++++++++++++++++++------- 8 files changed, 94 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 src/images/logos/apollo.svg delete mode 100644 src/images/logos/breather.webp delete mode 100644 src/images/logos/venmo.svg 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 09fec2c6a2fe0500d43ebcbc4361de352800423c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8784 zcmV-WBCp+2Nk&FUA^-qaMM6+kP&il$0000G000300093006|PpNa73t00CE^plur# z7sT6*h=BI~x4Xzu*tU_HySry*{)mXn2)MYakLmh|tB<<+n2U?6fPILFh=_6AL{wqw{fFbF)g+XLnRVv)q0A2%#K!s-nEBGQP4TK2X znEq`L(SNgP+n_CJdq7WcP}{am?FcuDC^R5~3L?nxUpel0tZh??>-_TA|fIpA|jkv+cq7qx&BR6HQ5p*S)$s- zUqzZayVhxZY#^flirltss#Ev2^M;6sh=>Tskt8`vAL6eK(D0QOXn1No;P`73z=0#i z0%H8!yPmNiqW_BAHd2&XI5KqmgNTTTh=_=Ya1}|mtL(eaz$5=g0~x+EC;$OjKo$@U zysD!Bj?c&4dlW?UUy<8Jin4qfTK+*qL`b!*ZF-ZJ8Tl&)7fDc9qM}jNRjEZ0i~Esv zi9}}3zRv$&ec$&ABKq&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ZpZ!ThXYpDuX;c`!WNZMFlu6v^v_ z2%sth_T|AS&aGC__Yx`$e6@BfD1=<0WvkNjyQFJd4XRd~N8USpQJv Gr~m*bhCn?4 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 ( Work
    - {resume.map((role, roleIndex) => ( + {resume.map((Role, roleIndex) => (
  1. - + {/* */} +
    Company
    - {role.company} + {Role.company}
    Role
    - {role.title} + {Role.title}
    Date
    -
    @@ -230,6 +280,7 @@ function Photos() { >