-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 934 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 }}