-
-
Notifications
You must be signed in to change notification settings - Fork 32
47 lines (43 loc) · 1.5 KB
/
~publish-to-github-releases.yaml
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
39
40
41
42
43
44
45
46
47
# This workflow is responsible for publishing a stable release of the extension
# to GitHub Releases. This workflow is meant to be called after a VSIX extension
# artifact has been packaged.
name: ~Publish to GitHub Releases
on:
workflow_call:
inputs:
version:
type: string
required: true
description: The version of the extension to publish
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
# Fetch the whole history so we can determine the next version number
# based on the commit history.
fetch-depth: 0
ref: main
- name: Set up git-cliff
uses: kenji-miyake/setup-git-cliff@2778609c643a39a2576c4bae2e493b855eb4aee8 # v2
- name: Retrieve packaged VSIX
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
name: biome.vsix
- name: Generate release notes
run: |
git-cliff \
--config .git-cliff/release-notes.toml \
--latest \
> RELEASE_NOTES.md
cat RELEASE_NOTES.md
# - name: Publish to GitHub Releases
# uses: softprops/action-gh-release@v2
# with:
# name: "${{ format('v{0}', inputs.version) }}"
# tag_name: "${{ format('v{0}', inputs.version) }}"
# body_path: RELEASE_NOTES.md
# files: biome.vsix