From 1180ae7a1dd5001311bf91a9b035f8ea778f0e97 Mon Sep 17 00:00:00 2001 From: LuchoTurtle Date: Tue, 16 Jul 2024 16:09:51 +0400 Subject: [PATCH 1/4] ci: Add build CI to PRs --- .github/workflows/build | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build diff --git a/.github/workflows/build b/.github/workflows/build new file mode 100644 index 0000000..3d2981a --- /dev/null +++ b/.github/workflows/build @@ -0,0 +1,30 @@ +name: Build + +on: + pull-request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + + # Checkout the code + - uses: actions/checkout@v3 + + # Install proper version of node + - uses: actions/setup-node@v3 + with: + node-version: '16.x' + + # Install v3.7.1 of gatsby-cli + - run: npm install -g gatsby-cli@3.7.1 + + # Install project dependencies + - run: npm install + + # Run gatsby build + - run: gatsby build + env: + GATSBY_MAP_GOOGLE_API_KEY: ${{ secrets.GATSBY_MAP_GOOGLE_API_KEY }} From aa75b3f5e3ec4cc8bec1dc1ad5128362c7d232c7 Mon Sep 17 00:00:00 2001 From: LuchoTurtle Date: Tue, 16 Jul 2024 16:12:27 +0400 Subject: [PATCH 2/4] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a9afcb5..1a6e93a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,7 +6,7 @@ on: - master jobs: - build: + deploy: runs-on: ubuntu-latest steps: @@ -38,4 +38,4 @@ jobs: env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - timeout-minutes: 20 \ No newline at end of file + timeout-minutes: 20 From 5caf5b0747a6bfd6651a092d39b05c15634533ce Mon Sep 17 00:00:00 2001 From: LuchoTurtle Date: Tue, 16 Jul 2024 16:14:58 +0400 Subject: [PATCH 3/4] Update build --- .github/workflows/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build b/.github/workflows/build index 3d2981a..829f1f7 100644 --- a/.github/workflows/build +++ b/.github/workflows/build @@ -1,7 +1,7 @@ name: Build on: - pull-request: + pull_request: branches: - master From 9f34b4d111b6468d246f6ca6c3692cbd1b8d6561 Mon Sep 17 00:00:00 2001 From: LuchoTurtle Date: Tue, 16 Jul 2024 16:15:48 +0400 Subject: [PATCH 4/4] Rename build to build.yaml --- .github/workflows/{build => build.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{build => build.yaml} (100%) diff --git a/.github/workflows/build b/.github/workflows/build.yaml similarity index 100% rename from .github/workflows/build rename to .github/workflows/build.yaml