-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f7b9d1
commit 95601cc
Showing
2 changed files
with
50 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Auto Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.event.head_commit.message, '[debug] Bump version to') | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Extract version | ||
id: version | ||
run: | | ||
MESSAGE="${{ github.event.head_commit.message }}" | ||
VERSION=$(echo $MESSAGE | grep -oP 'Bump version to \K[^ ]+') | ||
echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
- name: Get previous tag | ||
id: previoustag | ||
run: | | ||
PREV_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0") | ||
echo "tag=$PREV_TAG" >> $GITHUB_OUTPUT | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: v${{ steps.version.outputs.version }} | ||
name: StreamSnapper ${{ steps.version.outputs.version }} - Release notes | ||
body: | | ||
To use this library (available on [GitHub](https://github.com/henrique-coder/streamsnapper) and [PyPI](https://pypi.org/project/streamsnapper)), there are a few options. You can only use the tools from the YouTube (`streamsnapper[youtube]`) media service, and you can also use the Downloader (`streamsnapper[downloader]`) and Merger (`streamsnapper[merger]`). Or install the version with everything built in using `streamsnapper[all]`. | ||
**Note:** _when installing the library use `pip install -U streamsnapper[EXTRA]`, as installing the library without extra dependencies will not provide any tools. All are optional so that you can efficiently choose what you want to use._ | ||
#### Changelog: | ||
- _Gererating release notes..._ | ||
#### All changes: https://github.com/Henrique-Coder/streamsnapper/compare/${{ steps.previoustag.outputs.tag }}...v${{ steps.version.outputs.version }} | ||
draft: false | ||
prerelease: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |