Skip to content

Commit

Permalink
Merge pull request #22 from OpenVoiceOS/release-0.0.4a1
Browse files Browse the repository at this point in the history
Release 0.0.4a1
  • Loading branch information
JarbasAl authored Sep 11, 2024
2 parents 329f34a + 63bdf22 commit 4a0aca0
Show file tree
Hide file tree
Showing 13 changed files with 544 additions and 128 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/conventional-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# auto add labels to PRs
on:
pull_request_target:
types: [ opened, edited ]
name: conventional-release-labels
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: bcoe/conventional-release-labels@v1
32 changes: 0 additions & 32 deletions .github/workflows/propose_release.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/publish_alpha.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/publish_release.yml

This file was deleted.

72 changes: 72 additions & 0 deletions .github/workflows/publish_stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Stable Release
on:
push:
branches: [master]
workflow_dispatch:

jobs:
publish_stable:
uses: TigreGotico/gh-automations/.github/workflows/publish-stable.yml@master
secrets: inherit
with:
branch: 'master'
version_file: 'ovos_PHAL_plugin_oauth/version.py'
setup_py: 'setup.py'
publish_release: true

publish_pypi:
needs: publish_stable
if: success() # Ensure this job only runs if the previous job succeeds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: dev
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Build Tools
run: |
python -m pip install build wheel
- name: version
run: echo "::set-output name=version::$(python setup.py --version)"
id: version
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: V${{ steps.version.outputs.version }}
release_name: Release ${{ steps.version.outputs.version }}
body: |
Changes in this Release
${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: true
commitish: dev
- name: Build Distribution Packages
run: |
python setup.py sdist bdist_wheel
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{secrets.PYPI_TOKEN}}


sync_dev:
needs: publish_stable
if: success() # Ensure this job only runs if the previous job succeeds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
ref: master
- name: Push master -> dev
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: dev
108 changes: 108 additions & 0 deletions .github/workflows/release_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Release Alpha and Propose Stable

on:
pull_request:
types: [closed]
branches: [dev]

jobs:
publish_alpha:
if: github.event.pull_request.merged == true
uses: TigreGotico/gh-automations/.github/workflows/publish-alpha.yml@master
secrets: inherit
with:
branch: 'dev'
version_file: 'ovos_PHAL_plugin_oauth/version.py'
setup_py: 'setup.py'
update_changelog: true
publish_prerelease: true
changelog_max_issues: 100

notify:
if: github.event.pull_request.merged == true
needs: publish_alpha
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Send message to Matrix bots channel
id: matrix-chat-message
uses: fadenb/[email protected]
with:
homeserver: 'matrix.org'
token: ${{ secrets.MATRIX_TOKEN }}
channel: '!WjxEKjjINpyBRPFgxl:krbel.duckdns.org'
message: |
new ${{ github.event.repository.name }} PR merged! https://github.com/${{ github.repository }}/pull/${{ github.event.number }}
publish_pypi:
needs: publish_alpha
if: success() # Ensure this job only runs if the previous job succeeds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: dev
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Build Tools
run: |
python -m pip install build wheel
- name: version
run: echo "::set-output name=version::$(python setup.py --version)"
id: version
- name: Build Distribution Packages
run: |
python setup.py sdist bdist_wheel
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{secrets.PYPI_TOKEN}}


propose_release:
needs: publish_alpha
if: success() # Ensure this job only runs if the previous job succeeds
runs-on: ubuntu-latest
steps:
- name: Checkout dev branch
uses: actions/checkout@v3
with:
ref: dev

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Get version from setup.py
id: get_version
run: |
VERSION=$(python setup.py --version)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Create and push new branch
run: |
git checkout -b release-${{ env.VERSION }}
git push origin release-${{ env.VERSION }}
- name: Open Pull Request from dev to master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Variables
BRANCH_NAME="release-${{ env.VERSION }}"
BASE_BRANCH="master"
HEAD_BRANCH="release-${{ env.VERSION }}"
PR_TITLE="Release ${{ env.VERSION }}"
PR_BODY="Human review requested!"
# Create a PR using GitHub API
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token $GITHUB_TOKEN" \
-d "{\"title\":\"$PR_TITLE\",\"body\":\"$PR_BODY\",\"head\":\"$HEAD_BRANCH\",\"base\":\"$BASE_BRANCH\"}" \
https://api.github.com/repos/${{ github.repository }}/pulls
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ dmypy.json

# Pyre type checker
.pyre/

# vim cache files
.*.sw?
40 changes: 28 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,52 @@
# Changelog

## [0.0.2a4](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/tree/0.0.2a4) (2023-06-21)
## [0.0.4a1](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/tree/0.0.4a1) (2024-09-11)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/compare/V0.0.2a3...0.0.2a4)
[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/compare/0.0.3a4...0.0.4a1)

**Merged pull requests:**

- Update automation to shared actions [\#10](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/pull/10) ([NeonDaniel](https://github.com/NeonDaniel))
- refactor!:deprecate\_refresh\_endpoint [\#21](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/pull/21) ([JarbasAl](https://github.com/JarbasAl))

## [V0.0.2a3](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/tree/V0.0.2a3) (2023-06-21)
## [0.0.3a4](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/tree/0.0.3a4) (2024-09-11)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/compare/V0.0.2a2...V0.0.2a3)
[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/compare/0.0.3a3...0.0.3a4)

**Merged pull requests:**

- feat:semver\_automations [\#19](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/pull/19) ([JarbasAl](https://github.com/JarbasAl))

## [0.0.3a3](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/tree/0.0.3a3) (2024-02-09)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/compare/0.0.3a2...0.0.3a3)

**Implemented enhancements:**

- feat/network\_reqs [\#6](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/pull/6) ([JarbasAl](https://github.com/JarbasAl))
- Refresh token [\#12](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/pull/12) ([forslund](https://github.com/forslund))

## [V0.0.2a2](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/tree/V0.0.2a2) (2023-06-14)
## [0.0.3a2](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/tree/0.0.3a2) (2024-01-04)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/compare/V0.0.2a1...V0.0.2a2)
[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/compare/0.0.3a1...0.0.3a2)

**Closed issues:**

- Add PyPI Automation [\#3](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/issues/3)

**Merged pull requests:**

- Remove build files and add .gitignore [\#9](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/pull/9) ([NeonDaniel](https://github.com/NeonDaniel))
- Update logging, optimize, add more response messages [\#15](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/pull/15) ([NeonDaniel](https://github.com/NeonDaniel))

## [0.0.3a1](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/tree/0.0.3a1) (2023-09-11)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/compare/0.0.2...0.0.3a1)

## [V0.0.2a1](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/tree/V0.0.2a1) (2023-06-14)
**Closed issues:**

[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/compare/V0.0.1...V0.0.2a1)
- Incompatability with latest ovos-dinkum-listener [\#13](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/issues/13)

**Merged pull requests:**

- Update messagebus package dependency [\#8](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/pull/8) ([NeonDaniel](https://github.com/NeonDaniel))
- Relax ovos-backend-client dependency version [\#14](https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/pull/14) ([Ramblurr](https://github.com/Ramblurr))



Expand Down
Loading

0 comments on commit 4a0aca0

Please sign in to comment.