Skip to content

Commit 3c8faa0

Browse files
committed
Update github workflows
1 parent 9488186 commit 3c8faa0

File tree

2 files changed

+28
-49
lines changed

2 files changed

+28
-49
lines changed

.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)