-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: deploy back to github pages with the contact form
- Loading branch information
Showing
2 changed files
with
12 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,6 @@ jobs: | |
|
||
- name: Install and build website | ||
uses: withastro/action@v0 | ||
# with: | ||
# path: . # The root location of your Astro project inside the repository. (optional) | ||
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional) | ||
# 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) | ||
|
||
publish-release: | ||
needs: build | ||
|
@@ -43,39 +39,16 @@ jobs: | |
with: | ||
release-branches: '["main"]' | ||
|
||
# deploy: | ||
# needs: build | ||
# runs-on: ubuntu-latest | ||
# name: Deploy to GitHub pages | ||
# environment: | ||
# name: github-pages | ||
# url: ${{ steps.deployment.outputs.page_url }} | ||
# steps: | ||
# - name: Deploy to GitHub Pages | ||
# id: deployment | ||
# uses: actions/deploy-pages@v1 | ||
|
||
deploy: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
name: Deploy to Netlify | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Checkout your repository using git | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install and build website | ||
uses: withastro/action@v0 | ||
|
||
- name: Publish | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: "./dist" | ||
production-branch: main | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: "Deploy from GitHub Actions" | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
|
||
build-index: | ||
needs: deploy | ||
|
This file contains 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