From ded219f8fea3a9a070d102c1502a44344757eff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ademir=20Jos=C3=A9=20Ferreira=20J=C3=BAnior?= Date: Sun, 13 Aug 2023 14:25:27 -0300 Subject: [PATCH] ci: set up github pages --- .github/workflows/deploy.yml | 43 ++++++++++++++++++++++++++++++++++++ README.md | 6 ++--- public/.nojekyll | 0 3 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/deploy.yml create mode 100644 public/.nojekyll 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