Skip to content

Commit

Permalink
ci: fix action pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
noushad-pp committed Jul 20, 2024
1 parent e023305 commit d582505
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/deploy-to-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,33 @@
name: Deploy React Application

# Controls when the action will run.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true


on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [master]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
run-name: Build, Test, and Deploy

jobs:
build_test:
# The type of runner that the job will run on
build_test_deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
strategy:
matrix:
node-version: [21.x] # We will deploy with only one version of node

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: build and test
run: |
yarn install:fixed
yarn build
yarn test:no-watch
node-version: 21
- name: Install dependencies
run: yarn install:fixed
- name: Build
run: yarn build
- name: Run tests
run: yarn test:no-watch
- name: deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
Expand Down

0 comments on commit d582505

Please sign in to comment.