| name: Release |
| |
| on: |
| push: |
| tags: |
| - "v*.*.*" |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| steps: |
| - name: Checkout |
| uses: actions/checkout@v2 |
| - uses: bazelbuild/setup-bazelisk@v1 |
| - name: check git state is clean |
| run: git status --porcelain |
| - name: bazel test //... |
| env: |
| # Bazelisk will download bazel to here |
| XDG_CACHE_HOME: ~/.cache/bazel-repo |
| run: |
| bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc test |
| --config=release //... |
| - name: Release |
| uses: softprops/action-gh-release@v1 |
| with: |
| prerelease: true |
| files: | |
| bazel-out/*-opt-*/bin/cmd/aspect/aspect-linux_amd64 |
| bazel-out/*-opt-*/bin/cmd/aspect/aspect-linux_arm64 |
| bazel-out/*-opt-*/bin/cmd/aspect/aspect-darwin_amd64 |
| bazel-out/*-opt-*/bin/cmd/aspect/aspect-darwin_arm64 |
| bazel-out/*-opt-*/bin/cmd/aspect/aspect-windows_amd64.exe |