diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d763120 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: CI + +# Controls when the workflow will run +on: + push: + pull_request: + workflow_dispatch: + schedule: + - cron: "13 01 * * *" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - run: npm update + - run: ant + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: build + path: build/*.xar + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: build/*.xar +