Skip to content

Commit e543ef8

Browse files
authored
Refresh build scripts (#8)
1 parent 21a0f26 commit e543ef8

13 files changed

+330
-243
lines changed

.github/dependabot.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
# Until bug below is sorted we will not allow dependabot to run by itself
3+
# https://github.com/dependabot/dependabot-core/issues/369
4+
version: 2
5+
updates:
6+
- package-ecosystem: pip
7+
directory: /docs
8+
schedule:
9+
day: sunday
10+
interval: weekly
11+
labels:
12+
- dependabot-deps-updates
13+
- skip-changelog
14+
versioning-strategy: lockfile-only
15+
open-pull-requests-limit: 0 # neutered
16+
- package-ecosystem: pip
17+
directory: /
18+
schedule:
19+
day: sunday
20+
interval: weekly
21+
labels:
22+
- dependabot-deps-updates
23+
- skip-changelog
24+
versioning-strategy: lockfile-only
25+
open-pull-requests-limit: 0 # neutered
26+
- package-ecosystem: "github-actions"
27+
directory: "/"
28+
schedule:
29+
interval: weekly
30+
open-pull-requests-limit: 3
31+
labels:
32+
- "dependencies"
33+
- "skip-changelog"

.github/labels.yml

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

.github/release-drafter.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
categories:
2-
- title: 'Features'
3-
labels:
4-
- 'feature'
5-
- 'enhancement'
6-
- title: 'Bug Fixes'
7-
labels:
8-
- 'fix'
9-
- 'bugfix'
10-
- 'bug'
11-
- title: 'Maintenance'
12-
label: 'chore'
13-
exclude-labels:
14-
- 'skip-changelog'
15-
template: |
16-
## Changes
17-
18-
$CHANGES
1+
---
2+
# see https://github.com/ansible/devtools
3+
_extends: ansible/devtools

.github/workflows/ack.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
# See https://github.com/ansible/devtools/blob/main/.github/workflows/ack.yml
3+
name: ack
4+
on:
5+
pull_request_target:
6+
types: [opened, labeled, unlabeled, synchronize]
7+
8+
jobs:
9+
ack:
10+
uses: ansible/devtools/.github/workflows/ack.yml@main

.github/workflows/main.yml

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

.github/workflows/push.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
# See https://github.com/ansible/devtools/blob/main/.github/workflows/push.yml
3+
name: push
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- "releases/**"
9+
- "stable/**"
10+
11+
jobs:
12+
ack:
13+
uses: ansible/devtools/.github/workflows/push.yml@main

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: release
3+
4+
on:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
pypi:
10+
name: Publish to PyPI registry
11+
environment: release
12+
runs-on: ubuntu-22.04
13+
14+
env:
15+
FORCE_COLOR: 1
16+
PY_COLORS: 1
17+
TOXENV: pkg
18+
19+
steps:
20+
- name: Switch to using Python 3.9 by default
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: 3.9
24+
- name: Install tox
25+
run: python3 -m pip install --user "tox>=4.0.8"
26+
- name: Check out src from Git
27+
uses: actions/checkout@v3
28+
with:
29+
fetch-depth: 0 # needed by setuptools-scm
30+
- name: Build dists
31+
run: python -m tox
32+
- name: Publish to pypi.org
33+
if: >- # "create" workflows run separately from "push" & "pull_request"
34+
github.event_name == 'release'
35+
uses: pypa/gh-action-pypi-publish@release/v1
36+
with:
37+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)