Skip to content

Commit a55ac26

Browse files
committed
semver
1 parent 05ad5d2 commit a55ac26

File tree

15 files changed

+167
-458
lines changed

15 files changed

+167
-458
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# auto add labels to PRs
2+
on:
3+
pull_request_target:
4+
types: [ opened, edited ]
5+
name: conventional-release-labels
6+
jobs:
7+
label:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: bcoe/conventional-release-labels@v1

.github/workflows/dev2master.yml

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

.github/workflows/publish_build.yml

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

.github/workflows/publish_major.yml

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

.github/workflows/publish_minor.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
# This workflow will generate a distribution and upload it to PyPI
2-
3-
name: Publish Alpha Build ...aX
1+
name: Stable Release
42
on:
53
push:
6-
branches:
7-
- dev
8-
paths-ignore:
9-
- 'ovos_solver_aiml_plugin/version.py'
10-
- 'test/**'
11-
- 'examples/**'
12-
- '.github/**'
13-
- '.gitignore'
14-
- 'LICENSE'
15-
- 'CHANGELOG.md'
16-
- 'MANIFEST.in'
17-
- 'README.md'
18-
- 'scripts/**'
4+
branches: [master]
195
workflow_dispatch:
206

217
jobs:
22-
build_and_publish:
8+
publish_stable:
9+
uses: TigreGotico/gh-automations/.github/workflows/publish-stable.yml@master
10+
secrets: inherit
11+
with:
12+
branch: 'master'
13+
version_file: 'ovos-solver-plugin-aiml/version.py'
14+
setup_py: 'setup.py'
15+
publish_release: true
16+
17+
publish_pypi:
18+
needs: publish_stable
19+
if: success() # Ensure this job only runs if the previous job succeeds
2320
runs-on: ubuntu-latest
2421
steps:
2522
- uses: actions/checkout@v2
@@ -33,20 +30,6 @@ jobs:
3330
- name: Install Build Tools
3431
run: |
3532
python -m pip install build wheel
36-
- name: Increment Version
37-
run: |
38-
VER=$(python setup.py --version)
39-
python scripts/bump_alpha.py
40-
- name: "Generate release changelog"
41-
uses: heinrichreimer/github-changelog-generator-action@v2.3
42-
with:
43-
token: ${{ secrets.GITHUB_TOKEN }}
44-
id: changelog
45-
- name: Commit to dev
46-
uses: stefanzweifel/git-auto-commit-action@v4
47-
with:
48-
commit_message: Increment Version
49-
branch: dev
5033
- name: version
5134
run: echo "::set-output name=version::$(python setup.py --version)"
5235
id: version
@@ -63,10 +46,27 @@ jobs:
6346
${{ steps.changelog.outputs.changelog }}
6447
draft: false
6548
prerelease: true
49+
commitish: dev
6650
- name: Build Distribution Packages
6751
run: |
6852
python setup.py sdist bdist_wheel
6953
- name: Publish to Test PyPI
7054
uses: pypa/gh-action-pypi-publish@master
7155
with:
72-
password: ${{secrets.PYPI_TOKEN}}
56+
password: ${{secrets.PYPI_TOKEN}}
57+
58+
59+
sync_dev:
60+
needs: publish_stable
61+
if: success() # Ensure this job only runs if the previous job succeeds
62+
runs-on: ubuntu-latest
63+
steps:
64+
- uses: actions/checkout@v2
65+
with:
66+
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
67+
ref: master
68+
- name: Push master -> dev
69+
uses: ad-m/github-push-action@master
70+
with:
71+
github_token: ${{ secrets.GITHUB_TOKEN }}
72+
branch: dev

0 commit comments

Comments
 (0)