From 924a59b862f874cb173d789440762a39bb052497 Mon Sep 17 00:00:00 2001 From: Anibal <82195641+Anibal-Alpizar@users.noreply.github.com> Date: Sat, 18 May 2024 12:43:29 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Added=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/nextjs.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/nextjs.yml diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml new file mode 100644 index 0000000..d87608e --- /dev/null +++ b/.github/workflows/nextjs.yml @@ -0,0 +1,27 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Deploy Next.js site to Pages + +on: + push: + branches: [ "master" ] + +jobs: + build: + + runs-on: self-hosted + + strategy: + matrix: + node-version: ["20"] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm i + - run: npm run build --if-present