-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adopt devtools reusable workflows (#30)
- Loading branch information
Showing
6 changed files
with
79 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,2 @@ | ||
# Format and labels used aim to match those used by Ansible project | ||
categories: | ||
- title: 'Major Changes' | ||
labels: | ||
- 'major' # c6476b | ||
- title: 'Minor Changes' | ||
labels: | ||
- 'feature' # 006b75 | ||
- 'enhancement' # ededed | ||
- title: 'Bugfixes' | ||
labels: | ||
- 'bug' # fbca04 | ||
- title: 'Deprecations' | ||
labels: | ||
- 'deprecated' # fef2c0 | ||
exclude-labels: | ||
- 'skip-changelog' | ||
template: | | ||
## Changes | ||
$CHANGES | ||
# see https://github.com/ansible-community/devtools | ||
_extends: ansible-community/devtools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# See https://github.com/ansible-community/devtools/blob/main/.github/workflows/ack.yml | ||
name: ack | ||
on: | ||
pull_request_target: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
|
||
jobs: | ||
ack: | ||
uses: ansible-community/devtools/.github/workflows/ack.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# See https://github.com/ansible-community/devtools/blob/main/.github/workflows/push.yml | ||
name: push | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'releases/**' | ||
- 'stable/**' | ||
|
||
jobs: | ||
ack: | ||
uses: ansible-community/devtools/.github/workflows/push.yml@main |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
pypi: | ||
name: Publish to PyPI registry | ||
environment: release | ||
runs-on: ubuntu-20.04 | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
PY_COLORS: 1 | ||
TOXENV: packaging | ||
TOX_PARALLEL_NO_SPINNER: 1 | ||
|
||
steps: | ||
- name: Switch to using Python 3.8 by default | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install tox | ||
run: >- | ||
python3 -m | ||
pip install | ||
--user | ||
tox | ||
- name: Check out src from Git | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # needed by setuptools-scm | ||
- name: Build dists | ||
run: python -m tox | ||
- name: Publish to test.pypi.org | ||
if: >- # "create" workflows run separately from "push" & "pull_request" | ||
github.event_name == 'release' | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.testpypi_password }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish to pypi.org | ||
if: >- # "create" workflows run separately from "push" & "pull_request" | ||
github.event_name == 'release' | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.pypi_password }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters