Skip to content

Commit ccdbf81

Browse files
committed
ci: set pre-release flag
1 parent b32da27 commit ccdbf81

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,38 +29,16 @@ jobs:
2929

3030
- id: extract-changelog
3131
uses: sean0x42/markdown-extract@v2
32-
if: steps.version.outputs.is_stable == 'true'
3332
with:
3433
file: CHANGELOG.md
3534
pattern: ${{ github.ref_name }}
3635
no-print-matched-heading: true
3736
- name: Create Release
3837
uses: softprops/action-gh-release@v1
39-
if: steps.version.outputs.is_stable == 'true'
4038
with:
41-
prerelease: false
39+
prerelease: steps.version.outputs.is_stable != 'true'
4240
body: |
4341
## Changelog
4442
${{ steps.extract-changelog.outputs.markdown }}
4543
files: |
4644
*.vsix
47-
48-
- id: changelog-url
49-
name: Generate Changelog Url
50-
if: steps.version.outputs.is_stable != 'true'
51-
run: |
52-
SERVER_URL=${{ github.server_url }}
53-
REPO=${{ github.repository }}
54-
REF=${{ github.ref_name }}
55-
56-
echo "url=$SERVER_URL/$REPO/blob/$REF/CHANGELOG.md#unreleased" >> $GITHUB_OUTPUT
57-
- name: Create Pre-Release
58-
uses: softprops/action-gh-release@v1
59-
if: steps.version.outputs.is_stable != 'true'
60-
with:
61-
prerelease: true
62-
body: |
63-
This is a **pre-release**. Check the [Unreleased Section](${{ steps.changelog-url.outputs.url }})
64-
of the changelog for changes.
65-
files: |
66-
*.vsix

0 commit comments

Comments
 (0)