Skip to content

Commit

Permalink
ci: Upload build artifact
Browse files Browse the repository at this point in the history
This uploads a build artifact after release please has done a release
  • Loading branch information
cameron-martin committed Jan 18, 2024
1 parent bdf4d08 commit 31d8267
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: rust
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- name: Build
if: ${{ steps.release.outputs.release_created }}
run: |
cargo build --release
mkdir -p releases
cp target/release/bazel-lsp releases/bazel-lsp-${{ steps.release.outputs.major }}-${{ steps.release.outputs.minor }}-${{ steps.release.outputs.patch }}-linux-amd64
- name: Upload Release Artifacts
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} ./releases/*

0 comments on commit 31d8267

Please sign in to comment.