37 lines (33 loc) 路 980 Bytes
/
gulp-runner.yml
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
31
32
33
34
35
36
37
name: Run gulp tasks
# Controls when the action will run.
on:
push:
# On which branch
branches: ["master"]
# On which files
paths: ["scripts/scripts.js", "styles/styles.scss"]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Job name
build:
# Runner name
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Sets up node
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: gulp
- name: Commit files
run: |
git config --local user.name ${{ github.actor }}
git add -A
git commit -m "Update gulp output files"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.REPO_GITHUB_TOKEN }}
# force: true