From 22ca865ca6ee18534bd6a5f5f4b8881eb7080e2a Mon Sep 17 00:00:00 2001 From: Aaditya Murthy Date: Tue, 10 Oct 2023 09:44:07 -0500 Subject: [PATCH] Added github action --- .github/workflows/pre-release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/pre-release.yml diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml new file mode 100644 index 0000000..b8102a5 --- /dev/null +++ b/.github/workflows/pre-release.yml @@ -0,0 +1,28 @@ +--- +name: "pre-release" + +on: + push: + branches: + - "main" + +jobs: + pre-release: + name: "Pre Release" + runs-on: "ubuntu-latest" + + steps: + # ... + - name: "Build & test" + run: | + curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + wasm-pack build --target web + + - uses: "aadi123/Crustacean@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build" + files: | + pkg/*