Build by Github Actions #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Publish | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12.x | |
- name: Install Dependencies | |
run: | | |
yarn install --frozen-lockfile; | |
- name: Test | |
run: | | |
echo "Grafana Boom Table plugin - Test"; | |
yarn test; | |
- name: Build | |
run: | | |
echo "Grafana Boom Table plugin - Build"; | |
yarn build; | |
- name: Deploy | |
run: | | |
echo "Grafana Boom Table plugin - Deploy"; | |
echo $(date) > dist/LAST_UPDATED; | |
git config --global user.email "[email protected]"; | |
git config --global user.name "Github Actions"; | |
git add --force dist/ | |
git commit -m "Build by Github Actions" | |
git push | |
git status |