Skip to content

docs: 📝 added changelog File with auto generated content of comm… #25

docs: 📝 added changelog File with auto generated content of comm…

docs: 📝 added changelog File with auto generated content of comm… #25

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v_*.*.*' # Matches tags like v_1.0.0.0, v_2.1.3.0, etc.
jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Create virtualenv
run: |
python -m venv .venv
- name: Activate virtualenv
run: |
source .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Generate changelog
run: |
git cliff --tag ${{ github.ref }} --output changelog_currentVersion.md
# - name: Build Executable File and Zip for release
# working-directory: ./src
# run: |
# # Run your build script here
# python createNewTeamsBusyLightExeForGithubActions.py
- name: Read changelog
id: read_changelog
run: |
echo "changelog<<EOF" >> $GITHUB_ENV
cat changelog_currentVersion.md >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
continue-on-error: false
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body_path: changelog_currentVersion.md
prerelease: false
# - name: Upload Release Assets
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./dist/MS_Teams_Busy_Light.zip
# asset_name: MS_Teams_Busy_Light.zip
# asset_content_type: application/zip