diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59a4713..5f42982 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,28 +58,17 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 10 + - name: Install Vercel CLI + run: npm install --global vercel@latest - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "22.x" - cache: "pnpm" + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - - name: Install dependencies - run: pnpm install --frozen-lockfile + - name: Build Project Artifacts + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy to Vercel (Production) - env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - run: | - pnpm vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - pnpm vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} - pnpm vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} # ----------------------------------------------------------------- # JOB 3: Deploy de Preview @@ -98,28 +87,43 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 10 + - name: Install Vercel CLI + run: npm install --global vercel@latest - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "22.x" - cache: "pnpm" + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - - name: Install dependencies - run: pnpm install --frozen-lockfile + - name: Build Project Artifacts + run: vercel build --token=${{ secrets.VERCEL_TOKEN }} + + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} + + - name: Get Repo ID + if: github.event_name == 'pull_request' + run: | + REPO_ID=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }} | jq -r .id) + echo "REPO_ID=$REPO_ID" >> $GITHUB_ENV - - name: Deploy to Vercel (Preview) - env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + - name: Notify Vercel for PR Comment (if PR) + if: github.event_name == 'pull_request' run: | - pnpm vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - pnpm vercel build --token=${{ secrets.VERCEL_TOKEN }} - pnpm vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} + curl -X POST "https://api.vercel.com/v13/deployments" \ + -H "Authorization: Bearer ${{ secrets.VERCEL_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d '{ + "name": "mrdeveloper", + "source": "cli", + "gitSource": { + "type": "github", + "repo": "${{ github.repository }}", + "ref": "${{ github.head_ref }}", + "sha": "${{ github.sha }}", + "repoId": ${{ env.REPO_ID }} + } + }' + + # ----------------------------------------------------------------- # JOB 4: Criar Tag de Versão (Sem mudanças) diff --git a/index.html b/index.html index 4e81603..60a6e97 100644 --- a/index.html +++ b/index.html @@ -1,12 +1,36 @@ - +
- +
- Dynamic and seasoned Full Stack Developer with over 8 years of
+ Dynamic and seasoned Full Stack Developer with over 13 years of
comprehensive experience in web development and software
engineering. Proficient in an array of modern technologies including
React, React Native, Node.js, Golang, Linux, and Docker. Known for a
diff --git a/src/sections/Contact.tsx b/src/sections/Contact.tsx
index 196523b..94ad137 100644
--- a/src/sections/Contact.tsx
+++ b/src/sections/Contact.tsx
@@ -1,4 +1,5 @@
import { useState, useCallback, useMemo } from "react";
+import { Helmet } from "react-helmet-async";
import "./Contact.scss";
const Contact: React.FC = () => {
@@ -109,6 +110,13 @@ const Contact: React.FC = () => {
return (
Have a question or want to work together? Leave your details and
diff --git a/src/sections/Experience.tsx b/src/sections/Experience.tsx
index d73dacf..8e9d17e 100644
--- a/src/sections/Experience.tsx
+++ b/src/sections/Experience.tsx
@@ -1,4 +1,5 @@
import React, { memo, useMemo } from "react";
+import { Helmet } from "react-helmet-async";
import "./Experience.scss";
import { experienceData, ExperienceItem } from "./experienceData";
@@ -64,6 +65,13 @@ const Experience: React.FC = memo(() => {
itemScope
itemType="https://schema.org/ItemList"
>
+ Contact
Experience
+
Hello, I'm Matheus.
-