@cryptotaxi247 / kubo / commits / 8a9c62e63

Create build.yml

This adds GithubAction that runs the build and checks for any unstaged changes. This ensures `src/dir-index.html` match the output `dir-index.html` in the main directory.

Marcin Rataj committed Jul 27, 2020 at 21:57 UTC 8a9c62e63487c783be0cbd90bbf6cc3dce86bf88
1 file changed +22
.github/workflows/build.yml new
+22
@@ -0,0 +1,22 @@
1 +name: Build
2 +on:
3 + push:
4 +
5 +jobs:
6 + no-uncommitted-changes:
7 + runs-on: ubuntu-latest
8 + steps:
9 + - uses: actions/checkout@v2
10 + with:
11 + ref: ${{ github.head_ref }}
12 + - name: Run Build
13 + uses: actions/setup-node@v1
14 + with:
15 + node-version: '12.x'
16 + - run: npm run build
17 + - name: Check working tree
18 + id: changes
19 + uses: UnicornGlobal/has-changes-action@v1.0.11
20 + - name: Check for uncommited changes
21 + if: steps.changes.outputs.changed == 1
22 + run: git status && echo "Output does not match src/, uncommitted changes exist, follow build instructions from README" && exit 1