Skip to content

Merge pull request #126 from 10up/dependabot/npm_and_yarn/npm_and_yar… #79

Merge pull request #126 from 10up/dependabot/npm_and_yarn/npm_and_yar…

Merge pull request #126 from 10up/dependabot/npm_and_yarn/npm_and_yar… #79

name: Update built branch
on:
push:
branches: [develop]
jobs:
build:
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Create the build folder
run: |
mkdir build
cp package.json build/
mv lib build/
- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: build
FOLDER: build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: 'Build: ({sha}) {msg}'