Skip to content

Build gist-web - Use local steps for the actions As a public repo, it turns out gist-web cannot share the gist-workflows workflows #47

Build gist-web - Use local steps for the actions As a public repo, it turns out gist-web cannot share the gist-workflows workflows

Build gist-web - Use local steps for the actions As a public repo, it turns out gist-web cannot share the gist-workflows workflows #47

Workflow file for this run

name: Build Gist Web
run-name: Build gist-web - ${{ github.event.commits[0].message }}
on:
push:
branches:
- 'develop'
- 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: 16
- name: Build
shell: bash
run: |
npm install
npm run build:prod
- name: Commit any changes
shell: bash
run: |
git config user.name "ami-ci"
git config user.email "<>"
git add .
set +e # Grep succeeds with nonzero exit codes to show results.
git status | grep modified
if [ $? -eq 0 ]
then
set -e
git commit -am "New version of gist-web"
git push
else
set -e
echo "No changes since last run"
fi