Skip to content

Commit

Permalink
Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
blopker committed Jan 14, 2025
1 parent c494ec0 commit 98c6dde
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Binaries

on:
push:
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Test

on:
push:
Expand Down

0 comments on commit 98c6dde

Please sign in to comment.