2020-07-28 23:12:40 +00:00
|
|
|
name: build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- safe.fiery.me
|
|
|
|
paths:
|
2020-07-29 22:09:08 +00:00
|
|
|
- 'src/**/*.css'
|
|
|
|
- 'src/**/*.js'
|
|
|
|
- 'src/**/*.scss'
|
2020-08-24 05:34:28 +00:00
|
|
|
- 'src/versions.json'
|
2020-07-28 23:12:40 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-07-29 22:09:08 +00:00
|
|
|
name: Build client assets and bump v1 version string
|
|
|
|
runs-on: ubuntu-18.04
|
2020-07-28 23:12:40 +00:00
|
|
|
steps:
|
2020-07-29 22:09:08 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-07-29 23:03:45 +00:00
|
|
|
node-version: '12.x'
|
2020-07-29 22:09:08 +00:00
|
|
|
|
|
|
|
- name: Get yarn cache directory path
|
|
|
|
id: yarn-cache-dir-path
|
|
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
|
with:
|
|
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn install
|
|
|
|
|
|
|
|
- name: yarn build
|
|
|
|
run: yarn build
|
|
|
|
|
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
|
|
|
with:
|
2020-08-24 05:34:28 +00:00
|
|
|
commit_message: 'AUTO: Rebuilt client assets and bumped v1 version string'
|
2020-08-24 05:32:54 +00:00
|
|
|
commit_user_name: loli-bot
|
|
|
|
commit_user_email: hi@fiery.me
|
2020-07-29 22:09:08 +00:00
|
|
|
env:
|
|
|
|
CI: true
|