Skip to content

Commit

Permalink
Add image size for 200 px
Browse files Browse the repository at this point in the history
  • Loading branch information
eerison committed Jul 22, 2023
1 parent 769571a commit 98d2e54
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/resume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,19 @@ jobs:

- run: npm run build

- name: Generate pdf
- name: Generate files
run: |
python3 -m http.server --directory dist &> /dev/null &
pid=$!
sleep 2
sleep 1
npm run node:generate:pdf
npm run node:generate:card
kill "${pid}"
- name: Upload resume to bucket
run: npm run cloud:bucket:object put -- --file=data/pdf/resume.pdf myprofile/users/${{github.actor}}/resume.pdf
- name: Upload files to bucket
run: |
npm run cloud:bucket:object put -- --file=data/files/resume-default.pdf myprofile/users/${{github.actor}}/resume-default.pdf
npm run cloud:bucket:object put -- --file=data/files/user-card-default.webp myprofile/users/${{github.actor}}/user-card-default.webp
env:
CLOUDFLARE_ACCOUNT_ID: ${{secrets.CLOUDFLARE_ACCOUNT_ID}}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand All @@ -76,7 +79,7 @@ jobs:
# discussionId: 755
body: |
:white_check_mark: Your resume was generated with success :tada: :tada:, you can access using the link bellow.
**:page_with_curl: https://bucket.myprofile.pro/users/${{github.actor}}/resume.pdf?run_id=${{github.run_id}}**
**:page_with_curl: https://bucket.myprofile.pro/users/${{github.actor}}/resume-default.pdf?run_id=${{github.run_id}}**
discussion-comment-failure:
name: Failure comment
Expand Down
1 change: 0 additions & 1 deletion data/log/.gitignore

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions src/style/user-card-default/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ body {
#profile-image {
img {
border-radius: 100%;
width: 200px;
}
}
}
Expand Down
File renamed without changes.
9 changes: 8 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import { resolve } from "path";
import { defineConfig } from "vite";

// https://vitejs.dev/config/
export default defineConfig({
base: "./",
assetsInclude: ['**/*.md'],
build: {
target: 'esnext'
target: 'esnext',
rollupOptions: {
input: {
main: resolve(__dirname, 'resume-default.html'),
user_card: resolve(__dirname, 'user-card-default.html'),
},
},
}
});

0 comments on commit 98d2e54

Please sign in to comment.