Skip to content

Fix build

Fix build #38

Workflow file for this run

name: Build and Push
on:
pull_request_target:
types:
- closed
branches:
- master
jobs:
build:
if: github.event.pull_request.merged == true
name: Build and Push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.2.0
- uses: bahmutov/npm-install@v1
with:
install-command: yarn install --frozen-lockfile --prod
- name: Build
run: yarn build
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -f public index.html
git commit -m "Build - by Github Actions"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master