Skip to content

Commit

Permalink
astro.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zvasilev committed Jun 19, 2024
1 parent 36ee115 commit 9e12377
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 229 deletions.
83 changes: 16 additions & 67 deletions .github/workflows/astro.yml
Original file line number Diff line number Diff line change
@@ -1,90 +1,39 @@
# Sample workflow for building and deploying an Astro site to GitHub Pages
#
# To get started with Astro see: https://docs.astro.build/en/getting-started/
#
name: Deploy Astro site to Pages
name: Deploy to GitHub Pages

on:
# Runs on pushes targeting the default branch
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

env:
BUILD_PATH: "." # default value when not using subfolders
# BUILD_PATH: subfolder

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Detect package manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
echo "lockfile=yarn.lock" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
echo "lockfile=package-lock.json" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine package manager"
exit 1
fi
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
cache-dependency-path: ${{ env.BUILD_PATH }}/${{ steps.detect-package-manager.outputs.lockfile }}
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
working-directory: ${{ env.BUILD_PATH }}
- name: Build with Astro
run: |
${{ steps.detect-package-manager.outputs.runner }} astro build \
--site "${{ steps.pages.outputs.origin }}" \
--base "${{ steps.pages.outputs.base_path }}"
working-directory: ${{ env.BUILD_PATH }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.BUILD_PATH }}/dist
- name: Install, build, and upload your site
uses: withastro/action@v2
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

deploy:
needs: build
runs-on: ubuntu-latest
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@v4
uses: actions/deploy-pages@v4
39 changes: 0 additions & 39 deletions .github/workflows/deploy.yml

This file was deleted.

123 changes: 0 additions & 123 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,123 +0,0 @@
<h1 align=center>Pinwheel Astro</h1>
<p align=center>Pinwheel is a free multipurpose SaaS theme built with Astro, TailwindCSS and TypeScript with 17+ pre-designed pages.</p>
<h2 align="center"><a target="_blank" href="https://pinwheel-astro.vercel.app/" rel="nofollow"> πŸ‘€ Demo</a> | <a target="_blank" href="https://pagespeed.web.dev/analysis/https-pinwheel-astro-vercel-app/kmaxqwa7rx?form_factor=desktop"> Page Speed (95+) πŸš€ </a>
</h2>
<p align=center>
<a href="https://github.com/withastro/astro/releases/tag/astro%404.3.2" alt="Contributors">
<img src="https://img.shields.io/static/v1?label=ASTRO&message=4.3&color=000&logo=astro" />
</a>

<a href="https://github.com/themefisher/pinwheel-astro/blob/main/LICENSE">
<img src="https://img.shields.io/github/license/themefisher/pinwheel-astro" alt="license"></a>

<img src="https://img.shields.io/github/languages/code-size/themefisher/pinwheel-astro" alt="code size">

<a href="https://github.com/themefisher/pinwheel-astro/graphs/contributors">
<img src="https://img.shields.io/github/contributors/themefisher/bigspring-light-astro" alt="contributors"></a>
</p>

![pinwheel](https://demo.themefisher.com/thumbnails/pinwheel.png)

<!-- small description -->

<!-- key features -->
## πŸ“Œ Key Features

- πŸ“„ 17+ Pre-designed pages
- 🎨 Highly customizable (Color, Font, Menu, Social Links, SEO Meta Tags, etc.)
- πŸ—ƒοΈ Taxonomy support
- ⚑ Fast by default (95+ Google PageSpeed Score)
- πŸ”§ Netlify setting pre-configured
- πŸ“ Contact form support
- πŸ–ΌοΈ Support OG image
- πŸ“ Write and update content in Markdown / MDX
- πŸ’» MDX components auto import
- πŸ“ Includes draft pages and posts
- 🎨 Built with Tailwind CSS framework
- πŸ“± Fully responsive on desktops, tablets, and smartphones
- πŸ” SEO Friendly
- πŸ’¬ Disqus comment support

## πŸ“„ 17+ Pre-Designed Pages

- 🏠 Home
- πŸ› οΈ How it works
- 🌟 Features
- πŸ“ Blog
- πŸ“ Blog Single
- πŸ—‚οΈ Categories
- πŸ—‚οΈ Category Single
- πŸ‘€ About
- πŸ“ž Contact
- πŸ’Ό Career
- πŸ’Ό Career Single
- πŸ’° Pricing
- πŸ“œ Changelog
- πŸ”‘ Sign In
- πŸ”‘ Sing Up
- πŸ”— Integrations
- πŸ”— Integration Single
- πŸ“œ Terms and Conditions
- πŸ’‘ Elements

<!-- installation -->
## πŸ› οΈ Installation

After downloading the template, you have some prerequisites to install. Then you can run it on your localhost. You can view the package.json file to see which scripts are included.

### Install prerequisites (once for a machine)

- **Node Installation:** [Install node js](https://nodejs.org/en/download/) [Recommended LTS version]

### πŸ‘¨πŸ»β€πŸ’» Local setup

After successfully installing those dependencies, open this template with any IDE [[VS Code](https://code.visualstudio.com/) recommended], and then open the internal terminal of IDM [vs code shortcut <code>ctrl/cmd+\`</code>]

- πŸ‘‰ Install dependencies

```
npm install
```

- πŸ‘‰ Run locally

```
npm run dev
```

After that, it will open up a preview of the template in your default browser, watch for changes to source files, and live-reload the browser when changes are saved.

## πŸ—οΈ Production Build

After finishing all the customization, you can create a production build by running this command.

```
npm run build
```

<!-- reporting issue -->
## 🐞 Reporting Issues

We use GitHub Issues as the official bug tracker for this Template. Please Search [existing issues](https://github.com/themefisher/pinwheel-astro/issues). It’s possible someone has already reported the same problem.
If your problem or idea has not been addressed yet, feel free to [open a new issue](https://github.com/themefisher/pinwheel-astro/issues).

<!-- licence -->
## πŸ“ License

Copyright (c) 2023 - Present, Designed & Developed by [Themefisher](https://themefisher.com)

**Code License:** Released under the [MIT](https://github.com/themefisher/pinwheel-astro/blob/main/LICENSE) license.

**Image license:** The images are only for demonstration purposes. They have their license, we don't have permission to share those images.

## πŸ’» Need Custom Development Services?

Besides developing beautifully designed and blazing-fast themes, we help businesses create fast, performance-focused, scalable & secure websites based on NextJs, Hugo, Astro, etc.

If you need a custom theme, theme customization, or complete website development services from scratch you can [Hire Us](https://themefisher.com/contact).

## πŸ”₯ More Astro Themes By Themefisher

| [![Bigpsring](https://demo.gethugothemes.com/thumbnails/bigspring.png)](https://themefisher.com/products/bigspring-light-astro) | [![Andromeda](https://demo.gethugothemes.com/thumbnails/andromeda.png)](https://themefisher.com/products/andromeda-astro) | [![Bookwrom](https://demo.gethugothemes.com/thumbnails/bookworm.png)](https://themefisher.com/products/bookworm-astro) |
|:---:|:---:|:---:|
| **Bigpsring Light**| **Andromeda** | **Bookwom Light** |

0 comments on commit 9e12377

Please sign in to comment.