diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..594bb2e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Auto Release + +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: 'latest' + + - name: Install dependencies + run: bun install + + - name: Generate Release Build + run: bun export + + - name: Push release to GitHub + uses: "softprops/action-gh-release@v1" + with: + files: dist/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}