Add contact modal and form handling for user inquiries #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the repository | |
- name: Checkout repo | |
uses: actions/checkout@v4 # Updated to v4 | |
# Step 2: Set up Node.js | |
- name: Setup Node | |
uses: actions/setup-node@v4 # Updated to v4 | |
with: | |
node-version: 18 | |
# Step 3: Install dependencies | |
- name: Install dependencies | |
run: npm install # Replaced bahmutov/npm-install@v1 with standard npm install | |
# Step 4: Build the project | |
- name: Build project | |
run: npm run build | |
# Step 5: Upload production-ready build files | |
- name: Upload production-ready build files | |
uses: actions/upload-artifact@v4 # Updated to v4 | |
with: | |
name: production-files | |
path: ./dist | |
deploy: | |
name: Deploy | |
needs: build | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
# Step 1: Download the artifact | |
- name: Download artifact | |
uses: actions/download-artifact@v4 # Updated to v4 | |
with: | |
name: production-files | |
path: ./dist | |
# Step 2: Deploy to GitHub Pages | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |