Skip to content

Commit d8f8d0f

Browse files
committed
fix: deploy back to github pages with the contact form
1 parent ebba002 commit d8f8d0f

File tree

2 files changed

+12
-34
lines changed

2 files changed

+12
-34
lines changed

.github/workflows/continuous-deployment.yml

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ jobs:
2424

2525
- name: Install and build website
2626
uses: withastro/action@v0
27-
# with:
28-
# path: . # The root location of your Astro project inside the repository. (optional)
29-
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
30-
# package-manager: yarn # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
3127

3228
publish-release:
3329
needs: build
@@ -43,39 +39,16 @@ jobs:
4339
with:
4440
release-branches: '["main"]'
4541

46-
# deploy:
47-
# needs: build
48-
# runs-on: ubuntu-latest
49-
# name: Deploy to GitHub pages
50-
# environment:
51-
# name: github-pages
52-
# url: ${{ steps.deployment.outputs.page_url }}
53-
# steps:
54-
# - name: Deploy to GitHub Pages
55-
# id: deployment
56-
# uses: actions/deploy-pages@v1
57-
5842
deploy:
5943
needs: build
6044
runs-on: ubuntu-latest
61-
name: Deploy to Netlify
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
6248
steps:
63-
- name: Checkout your repository using git
64-
uses: actions/checkout@v3
65-
66-
- name: Install and build website
67-
uses: withastro/action@v0
68-
69-
- name: Publish
70-
uses: nwtgck/actions-netlify@v1.2
71-
with:
72-
publish-dir: "./dist"
73-
production-branch: main
74-
github-token: ${{ secrets.GITHUB_TOKEN }}
75-
deploy-message: "Deploy from GitHub Actions"
76-
env:
77-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
78-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v1
7952

8053
build-index:
8154
needs: deploy

src/pages/contact.astro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ import Layout from "../layouts/Layout.astro";
44

55
<Layout title="Homepage">
66
<div class="mt-12 mx-auto max-w-4xl">
7-
<form name="contact" netlify class="grid grid-cols-1 gap-y-6 sm:grid-cols-2 sm:gap-x-8">
7+
<form
8+
name="contact"
9+
class="grid grid-cols-1 gap-y-6 sm:grid-cols-2 sm:gap-x-8"
10+
action="https://getform.io/f/75c12049-9fa0-4eff-a3e7-78a02f36cbff"
11+
method="POST"
12+
>
813
<div>
914
<label for="first-name" class="text-sm font-medium text-zinc-700 dark:text-zinc-400">First name</label>
1015
<div class="mt-1">

0 commit comments

Comments
 (0)