Generate dist files #205
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: 'Generate dist files' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- node/ | |
- webpack.config.js | |
- package.* | |
jobs: | |
dist: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
# https://github.com/actions/checkout | |
- name: 'Checkout master' | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
# https://github.com/actions/setup-node | |
- name: 'Setup node' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: 'Generate dist' | |
run: make dist.install dist | |
- name: 'Git status' | |
run: git status | |
# https://github.com/EndBug/add-and-commit | |
- name: 'Commit & push changes' | |
uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: GitHub Actions Bot | |
author_email: [email protected] | |
message: '[AUTO] By Github Actions: generate dist files' | |
add: "dist" | |
ref: master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |