diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..a751da8 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/README.md b/README.md index 341728d..8f5f886 100644 --- a/README.md +++ b/README.md @@ -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 @@ -41,10 +42,9 @@ Users should be able to: - [React](https://reactjs.org/) - JavaScript library - [Next.js](https://nextjs.org/) - React framework - +- [Next.js Github Pages](https://github.com/gregrickaby/nextjs-github-pages) - This helped me setup github pages for NextJS framework. ## Author diff --git a/public/.nojekyll b/public/.nojekyll new file mode 100644 index 0000000..e69de29