Skip to content

Commit

Permalink
minor deploy and workflow changes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
ukorvl committed Jun 24, 2024
1 parent 99d394a commit 151fa60
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 28 deletions.
9 changes: 9 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: "Build"
description: "Build the project."

runs:
using: "composite"
steps:
- name: Build
shell: bash
run: npm run build
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: "Test"
description: "Lint and test the project."
name: 'Test'
description: 'Lint and test the project.'

runs:
using: "composite"
using: 'composite'
steps:
- name: Lint
shell: bash
run: |
npm run lint
npm run lint:editorconfig
- name: Prettier rules check
shell: bash
run: npm run prettier-check
- name: e2e
uses: cypress-io/github-action@v5
Expand All @@ -17,4 +19,5 @@ runs:
start: npm start
record: false
- name: Check seo
shell: bash
run: npm run check-seo
21 changes: 0 additions & 21 deletions .github/workflows/actions/build/action.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ concurrency:

jobs:
build:
name: Build
name: Build on Node.js ${{ matrix.version }}
runs-on: ubuntu-latest
env:
GA_TRACKING_ID: ${{ secrets.GA_TRACKING_ID }}
FORMSPREE_ID: ${{ secrets.FORMSPREE_ID }}
HOTJAR_ID: ${{ secrets.HOTJAR_ID }}
HOTJAR_SNIPPET_VERSION: ${{ secrets.HOTJAR_SNIPPET_VERSION }}
strategy:
matrix:
version: [18, 20, 22]
Expand All @@ -26,4 +31,3 @@ jobs:
uses: ./.github/actions/test
- name: Build
uses: ./.github/actions/build

8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
env:
GA_TRACKING_ID: ${{ secrets.GA_TRACKING_ID }}
FORMSPREE_ID: ${{ secrets.FORMSPREE_ID }}
HOTJAR_ID: ${{ secrets.HOTJAR_ID }}
HOTJAR_SNIPPET_VERSION: ${{ secrets.HOTJAR_SNIPPET_VERSION }}
ASSETS_BASE_PATH: /s
steps:
- name: Clone repository
uses: actions/checkout@v4
Expand All @@ -28,8 +34,6 @@ jobs:
node_version: 18
- name: Build
uses: ./.github/actions/build
with:
assets_path: 'assets'
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down

0 comments on commit 151fa60

Please sign in to comment.