-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (30 loc) · 799 Bytes
/
devbuild.yml
File metadata and controls
30 lines (30 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Build
on:
workflow_dispatch:
push:
branches:
- "master"
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "18.13.0"
registry-url: "https://registry.npmjs.org"
- run: npm i
- run: npm run build
- name: Commit files
run: |
git add .
git commit -m "Build"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.head_ref }}