Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ci back #59

Merged
merged 7 commits into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 45 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,45 @@
# name: test, build and deploy site
# on: [push]
# jobs:
# cypress-run:
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v3
# - name: run e2e tests
# uses: cypress-io/github-action@v5
# with:
# start: npm run ci:e2e
# env:
# CYPRESS_baseUrl: http://localhost:8080/
# - uses: actions/upload-artifact@v3
# if: failure()
# with:
# name: cypress-screenshots
# path: ./cypress/videos/
# build:
# needs: cypress-run
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
# steps:
# - uses: actions/checkout@v3
# - name: setup node
# uses: actions/setup-node@v3
# with:
# node-version: '18.x'
# cache: 'npm'
# - name: build for static hosting
# run: |
# npm install
# npm run docs:build
# touch docs/.vitepress/dist/.nojekyll # https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/
# - name: deploy the site
# uses: crazy-max/ghaction-github-pages@v2
# with:
# build_dir: docs/.vitepress/dist/
# fqdn: ${{ secrets.SITE_FQDN }}
# env:
# GH_PAT: ${{ secrets.DEPLOYMENT_PAT }}
name: test, build and deploy site
on: [push]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: run e2e tests
uses: cypress-io/github-action@v5
with:
start: npm run test:e2e
env:
CYPRESS_baseUrl: http://localhost:8080/
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: ./cypress/videos/
build-and-deploy:
needs: run-tests
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
update-resume-gist:
needs: build-and-deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Update Resume Gist
uses: exuanbo/actions-deploy-gist@v1
with:
token: ${{ secrets.TOKEN }}
gist_id: 1ab255457bdc9c22a4453ad383bc3108
file_path: resume/resume.clintp.json
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ To further explore the resume data you can use [lite.datasette.io](https://lite.

### Prerequisites

* Node.js 20.x
* Node.js 18.x
* npm 10.x

### Installing

Expand Down Expand Up @@ -63,8 +64,16 @@ curl -L \
```

## TODO
Add timeline - https://matplotlib.org/stable/gallery/lines_bars_and_markers/timeline.html
- [ ] Add timeline - https://matplotlib.org/stable/gallery/lines_bars_and_markers/timeline.html
- [ ] Add vCard/QRCode or https://en.wikipedia.org/wiki/MeCard_(QR_code)
- [ ] Add HTML Template
- [ ] Add workflow orchestration
- [ ] Add PDF
- [ ] Implement JSON Source View - https://mac-s-g.github.io/react-json-view/demo/dist/

## Links
* https://github.com/gauravghongde/social-icons
* https://www.svgrepo.com/svg/342086/open-source-initiative
* https://www.qr-code-generator.com/solutions/vcard-qr-code/
* https://github.com/anna-geller/prefect-getting-started

4 changes: 2 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Header = ({ profiles }: { profiles: Array<{ network: string, url: string }
<header className="fixed inset-x-0 bottom-0 bg-neutral-800 sm:relative">
<div className="mx-auto justify-between p-3 sm:flex sm:max-w-4xl sm:p-4">
<Link href="/" className="hidden items-center gap-1 sm:flex">
<Image className="inline-block w-8 object-cover rounded mr-2" src={resume.basics.image} width={32} height={32} alt="Picture of me" />
<Image className="inline-block w-8 object-cover rounded mr-2" src={'favicon.svg'} width={32} height={32} alt="Picture of me" />
<h1 className="text-lg font-bold text-white">$ ./clintp.xyz</h1>
</Link>
<div className="flex gap-3">
Expand Down Expand Up @@ -89,7 +89,7 @@ export default function Home() {
<article className="mx-auto max-w-3xl p-4 selection:bg-black selection:text-white">
<h2 className="mb-8 text-4xl font-bold dark:text-white sm:mt-16">Who?</h2>
<Image className="float-right rounded-full"
src={resume.basics.image + '?s=200'}
src={resume.basics.image}
width={175} height={175}
quality="100"
alt="Picture of me"
Expand Down
1 change: 1 addition & 0 deletions resume/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ texsoup = "*"
sumy = "*"
py-readability-metrics = "*"
check-jsonschema = "*"
prefect = "*"

[requires]
python_version = "3.9"
Loading
Loading