-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (60 loc) · 2.01 KB
/
release.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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