Skip to content

Commit

Permalink
Merge pull request #1 from DrewMcArthur/tweaks-1
Browse files Browse the repository at this point in the history
v0.0.2 tweaks
  • Loading branch information
DrewMcArthur authored Mar 6, 2023
2 parents da9828a + 801ce7a commit 0858d21
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 539 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
pull_request:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -28,6 +30,16 @@ env:
# BUILD_PATH: subfolder

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Astro Check
run: |
npm install
npm run check
build:
name: Build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -74,14 +86,15 @@ jobs:
with:
path: ${{ env.BUILD_PATH }}/dist

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
# skip deploy, repo hosted on cloudflare pages
# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# needs: build
# runs-on: ubuntu-latest
# name: Deploy
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v1
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# contact-page

![astro workflow](https://github.com/DrewMcArthur/contact-page/actions/workflows/astro.yml/badge.svg)

a simple contact page built with [astro](https://astro.build).

visible (soon) at [mcarthur.in/](https://mcarthur.in)
14 changes: 2 additions & 12 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import { defineConfig } from 'astro/config';

// https://astro.build/config
import react from "@astrojs/react";

// https://astro.build/config
import preact from "@astrojs/preact";

// https://astro.build/config
import image from "@astrojs/image";

// https://astro.build/config

// https://astro.build/config
export default defineConfig({
integrations: [react(), preact(), image()]
});
integrations: []
});
Loading

0 comments on commit 0858d21

Please sign in to comment.