Skip to content

Commit 25e88b6

Browse files
authored
Merge pull request #5 from LGE-OSS/develop
Update github workflows
2 parents e949244 + 3c8faa0 commit 25e88b6

File tree

5 files changed

+84
-49
lines changed

5 files changed

+84
-49
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: dd-jy
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
16+
**Expected behavior**
17+
A clear and concise description of what you expected to happen.
18+
19+
**System environment (please complete the following information):**
20+
- OS: [e.g. Ubuntu 16.04, Windows, Mac OS]
21+
- Python : [e.g. python3.7]
22+
23+
**Additional context**
24+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: dd-jy
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Description
2+
(Please describe what this PR do.)
3+
4+
5+
## Type of change
6+
Please insert 'x' one of the type of change.
7+
- [ ] Bug fix (non-breaking change which fixes an issue)
8+
- [ ] New feature (non-breaking change which adds functionality)
9+
- [ ] Documentation update
10+
- [ ] Refactoring, Maintenance
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+

.github/workflows/build_exe.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/release-publish.yml renamed to .github/workflows/publish-release.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,38 @@
1-
# This workflow will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
1+
# 1. Update changelog
2+
# 2. Build the exe file and upload it in the release assets.
3+
# 3. Upload a Python Package using Twine
34

4-
name: Upload Python Package
5+
name: Release fosslight_dependency
56

67
on:
78
release:
8-
types: [created]
9+
types: [published]
910

1011
jobs:
11-
12+
update-changelog:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: update changelog with gren
17+
env:
18+
GREN_GITHUB_TOKEN: ${{ secrets.TOKEN }}
19+
run: |
20+
npm install [email protected]
21+
node_modules/.bin/gren changelog --override
22+
- name: Commit files
23+
run: |
24+
git config --local user.name "github-actions[bot]"
25+
git add .
26+
git commit -m "Update ChangeLog"
27+
- name: Push changes
28+
uses: ad-m/github-push-action@master
29+
with:
30+
github_token: ${{ secrets.TOKEN }}
31+
branch: main
32+
1233
build:
13-
34+
needs: update-changelog
1435
runs-on: ubuntu-18.04
15-
1636
steps:
1737
- uses: actions/checkout@v2
1838

@@ -44,9 +64,8 @@ jobs:
4464
asset_content_type: application/zip
4565

4666
deploy:
47-
4867
runs-on: ubuntu-18.04
49-
68+
needs: build
5069
steps:
5170
- uses: actions/checkout@v2
5271
- name: Set up Python

0 commit comments

Comments
 (0)