Skip to content

Commit

Permalink
Create build-release-binary.yml (#2)
Browse files Browse the repository at this point in the history
* Create build-release-binary.yml

* Added path-ignore

* fixed the build command

* Added `workflow_dispatch` to the action triggers
  • Loading branch information
fredericsimard authored Mar 6, 2024
1 parent 924ba27 commit f33393e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-release-binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build release binary

on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '.github/workflows/**'
- '*.md'

jobs:
build-and-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Build binary
run: |
npm install @actions/core @actions/github
npm i -g @vercel/ncc
ncc build src/index.js -o dist --license licenses.txt
- name: Commit build
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add -A
git commit -m 'Automated: built dist package'
git push

0 comments on commit f33393e

Please sign in to comment.