better feedback from the render button #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bundle and deploy to the main branch | |
on: | |
push: | |
branches: [develop] | |
paths: [evolve_analytics.meta.js] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout develop | |
uses: actions/checkout@v4 | |
- name: Get version | |
run: | | |
echo "VERSION=$(sed -n 's/\/\/ *@version *//p' evolve_analytics.meta.js)" >> $GITHUB_ENV | |
- name: Checkout main | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
path: build | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
- name: Build package | |
run: | | |
npm install | |
npm run build | |
cp evolve_analytics.meta.js build/ | |
- name: Make Commit | |
uses: EndBug/add-and-commit@v9 | |
with: | |
cwd: build | |
fetch: false | |
default_author: github_actions | |
message: "${{ env.VERSION }}" | |
add: "." |