From e53d9022462a2b02e1dafa1e88e67a1ce45cbc76 Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Tue, 18 Apr 2023 16:58:42 +0100 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c76ae40 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: Build Assets + +on: + push: + branches: + - 'main' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - run: npm install + + - run: npm run build + + - run: | + git config --global user.name 'Simon Hamp' + git config --global user.email 'simon.hamp@me.com' + if git add dist/* ; then + git commit -m "Build resources" + git push + fi