-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 994 Bytes
/
continuous integration.yml
File metadata and controls
40 lines (34 loc) · 994 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
31
32
33
34
35
36
37
38
39
40
name: continuous integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
minify:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: Auto Minify
uses: nizarmah/auto-minify@v1.9
with:
directory: 'src'
- name: Auto committing minified files
uses: stefanzweifel/git-auto-commit-action@v4.4.0
with:
commit_message: "Github Action: Auto Minified JS and CSS files"
branch: ${{ github.ref }}
release:
runs-on: ubuntu-latest
needs: [ minify ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
branches: 'master'