Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
chore: comment branch action
Browse files Browse the repository at this point in the history
  • Loading branch information
kptdobe committed Nov 15, 2023
1 parent 6bb0173 commit eb2a5ca
Showing 1 changed file with 32 additions and 28 deletions.
60 changes: 32 additions & 28 deletions .github/workflows/branch.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
name: Build on branches
on:
push:
branches-ignore:
- 'main'
paths-ignore:
- 'build/**'
# uncomment if you need build version of the app on the branch
# note: before merging to main changes in the build folder should be reverted to avoid temporarily deploying
# the branch version in production

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm install
- run: npm run build
env:
REACT_APP_AWS_SERVICE_ENDPOINT: ${{ secrets.REACT_APP_SERVICE_ENDPOINT_DEV }}
REACT_APP_MAGIC_LINK_API_KEY: ${{ secrets.REACT_APP_MAGIC_LINK_API_KEY }}
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "CI Bot"
git add --force build/**
git commit -m "chore(auto): Commit build artifacts [skip ci]"
git push
# name: Build on branches
# on:
# push:
# branches-ignore:
# - 'main'
# paths-ignore:
# - 'build/**'

# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Use Node.js 18.x
# uses: actions/setup-node@v3
# with:
# node-version: '18.x'
# - run: npm install
# - run: npm run build
# env:
# REACT_APP_AWS_SERVICE_ENDPOINT: ${{ secrets.REACT_APP_SERVICE_ENDPOINT_DEV }}
# REACT_APP_MAGIC_LINK_API_KEY: ${{ secrets.REACT_APP_MAGIC_LINK_API_KEY }}
# - name: Commit changes
# run: |
# git config --local user.email "[email protected]"
# git config --local user.name "CI Bot"
# git add --force build/**
# git commit -m "chore(auto): Commit build artifacts [skip ci]"
# git push

0 comments on commit eb2a5ca

Please sign in to comment.