diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index 3b316b7..2923440 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -1,4 +1,4 @@ -name: Release +name: Binaries on: push: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6f10f06 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,38 @@ +name: Release +on: + workflow_run: + workflows: ["Test", "Binaries"] + branches: [main] + tags: + - v* + types: + - completed + +jobs: + on-success: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + name: artifacts + path: artifacts + pattern: codebook-lsp-* + run-id: ${{ github.event.workflow_run.id }} + + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + files: | + artifacts/codebook-lsp* + prerelease: true + fail_on_unmatched_files: true + generate_release_notes: true + draft: false + tag_name: ${{ github.ref_name }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c429edb..b6fd6b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Rust +name: Test on: push: