Skip to content

Commit

Permalink
ci: set up github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Azganoth committed Aug 13, 2023
1 parent 9a98aab commit ded219f
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy static content to Pages

on:
push:
branches: ['main']
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload out repository
path: './out'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This is a solution to the [Galleria slideshow site challenge on Frontend Mentor]
- [The challenge](#the-challenge)
- [My process](#my-process)
- [Built with](#built-with)
- [Useful resources](#useful-resources)
- [Author](#author)

## Overview
Expand Down Expand Up @@ -41,10 +42,9 @@ Users should be able to:
- [React](https://reactjs.org/) - JavaScript library
- [Next.js](https://nextjs.org/) - React framework

<!-- ### Useful resources
### Useful resources

- [Example resource 1](https://www.example.com) - This helped me for XYZ reason. I really liked this pattern and will use it going forward.
- [Example resource 2](https://www.example.com) - This is an amazing article which helped me finally understand XYZ. I'd recommend it to anyone still learning this concept. -->
- [Next.js Github Pages](https://github.com/gregrickaby/nextjs-github-pages) - This helped me setup github pages for NextJS framework.

## Author

Expand Down
Empty file added public/.nojekyll
Empty file.

0 comments on commit ded219f

Please sign in to comment.