Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
gxskpo committed Sep 15, 2024
1 parent e83d207 commit 56b7e2c
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/vercel_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy
on:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
jobs:
DEPLOY:
runs-on: ubuntu-latest
enviroment: production
steps:
- name: git-checkout
uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2

- name: Setup Rust
run: |
rustup target add wasm32-unknown-unknown
cargo clippy
cargo fmt --check
- name: Download and install Trunk binary
run: wget -qO- https://github.com/trunk-rs/trunk/releases/download/v0.18.2/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-

- name: Build
run: ./trunk build --release

- name: Install Vercel CLI
run: npm i -g vercel@latest

- name: Pull vercel info
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy
id: deployment
working-directory: ./dist
run: |
vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }} >> $GITHUB_STEP_SUMMARY
echo $GITHUB_STEP_SUMMARY
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ target/
.DS_Store
dist/
node_modules/
.vercel
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
<!-- If using Tailwind with Leptos CSR, see https://trunkrs.dev/assets/#tailwind instead-->
<meta name="viewport" content="width=device-width" />
<link data-trunk rel="css" href="public/styles.css" />
<meta name="viewport" content="width=device-width" />
<meta
name="description"
content="Holii, soy Haruka, A veces programo cosas
No soy Hayami lpm"
/>
<meta
property="og:description"
content="Holii, soy Haruka, A veces programo cosas
No soy Hayami lpm"
/>
<meta property="og:title" content="Haruka Dev - I love .NET" />
<title>Haruka Dev - I love .NET</title>

<!--
<link data-trunk rel="icon" href="public/favicon.ico" />
Expand Down

0 comments on commit 56b7e2c

Please sign in to comment.