Skip to content

Commit

Permalink
ci: set pre-release flag
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed Feb 10, 2024
1 parent b32da27 commit ccdbf81
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,38 +29,16 @@ jobs:

- id: extract-changelog
uses: sean0x42/markdown-extract@v2
if: steps.version.outputs.is_stable == 'true'
with:
file: CHANGELOG.md
pattern: ${{ github.ref_name }}
no-print-matched-heading: true
- name: Create Release
uses: softprops/action-gh-release@v1
if: steps.version.outputs.is_stable == 'true'
with:
prerelease: false
prerelease: steps.version.outputs.is_stable != 'true'
body: |
## Changelog
${{ steps.extract-changelog.outputs.markdown }}
files: |
*.vsix
- id: changelog-url
name: Generate Changelog Url
if: steps.version.outputs.is_stable != 'true'
run: |
SERVER_URL=${{ github.server_url }}
REPO=${{ github.repository }}
REF=${{ github.ref_name }}
echo "url=$SERVER_URL/$REPO/blob/$REF/CHANGELOG.md#unreleased" >> $GITHUB_OUTPUT
- name: Create Pre-Release
uses: softprops/action-gh-release@v1
if: steps.version.outputs.is_stable != 'true'
with:
prerelease: true
body: |
This is a **pre-release**. Check the [Unreleased Section](${{ steps.changelog-url.outputs.url }})
of the changelog for changes.
files: |
*.vsix

0 comments on commit ccdbf81

Please sign in to comment.