-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
229 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 |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -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** | | ||