Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 00c85ec

Browse files
authored
Merge pull request #17 from Anselmoo/release_cd
Adding pre-release
2 parents 2709e0c + 60b0130 commit 00c85ec

File tree

6 files changed

+116
-15
lines changed

6 files changed

+116
-15
lines changed

.github/release-drafter.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name-template: 'v$RESOLVED_VERSION 🌈'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
template: |
4+
# What's Changed
5+
$CHANGES
6+
7+
# Who Contributes
8+
$CONTRIBUTORS
9+
categories:
10+
- title: '🏆 Milestone'
11+
label: 'type: milestone'
12+
- title: '🚀 New'
13+
label: 'type: enhancement'
14+
- title: '🐛 Bug Fixes'
15+
label: 'type: bug'
16+
- title: '🧰 Maintenance'
17+
label: 'type: maintenance'
18+
- title: '🗂 Documentation'
19+
label: 'type: documentation'
20+
- title: '🔗 Dependency Updates'
21+
label: 'type: dependencies'
22+
23+
version-resolver:
24+
major:
25+
labels:
26+
- 'type: milestone'
27+
minor:
28+
labels:
29+
- 'type: enhancement'
30+
patch:
31+
labels:
32+
- 'type: bug'
33+
- 'type: maintenance'
34+
- 'type: documentation'
35+
- 'type: dependencies'
36+
- 'type: security'
37+
38+
exclude-labels:
39+
- 'skip-changelog'

.github/workflows/cd.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: PyPi Publishing
2+
on:
3+
push:
4+
tags:
5+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6+
branches:
7+
- main
8+
jobs:
9+
# Release new version on github releases
10+
Github-release:
11+
name: Create Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Create Release
17+
id: create_release
18+
uses: actions/create-release@v1
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
tag_name: ${{ github.ref }}
23+
release_name: Release ${{ github.ref }}
24+
draft: false
25+
prerelease: true
26+
27+
Matrix-build:
28+
name: Python ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
29+
runs-on: ${{ matrix.os }}
30+
env:
31+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
32+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
33+
strategy:
34+
matrix:
35+
python-version:
36+
- 3.6
37+
- 3.7
38+
- 3.8
39+
- 3.9
40+
os:
41+
- ubuntu-latest
42+
- macOS-latest
43+
- windows-latest
44+
arch:
45+
- x64
46+
steps:
47+
- uses: actions/checkout@v2
48+
- name: Set up Python
49+
uses: actions/setup-python@v2
50+
with:
51+
python-version: ${{ matrix.python-version }}
52+
- name: Install dependencies
53+
run: |
54+
python -m pip install --upgrade pip
55+
pip install setuptools wheel twine
56+
- name: Build and publish
57+
run: |
58+
python setup.py sdist bdist_wheel
59+
twine upload dist/*
60+
continue-on-error: true

.github/workflows/ci.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,9 @@ on:
77
branches: [main]
88

99
jobs:
10-
pre-commit:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-python@v2
15-
with:
16-
python-version: 3.8
17-
- name: Install dependencies
18-
run: |
19-
python -m pip install --upgrade pip
20-
pip install -r dev-requirements.txt
21-
- uses: pre-commit/[email protected]
22-
with:
23-
token: ${{ secrets.GITHUB_TOKEN }}
2410
build:
2511
name: Python ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
2612
runs-on: ${{ matrix.os }}
27-
needs: pre-commit
2813
strategy:
2914
fail-fast: false
3015
matrix:
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- main
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: release-drafter/release-drafter@v5
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/AI2Business/mkdocstrings-sourcelink/main.svg)](https://results.pre-commit.ci/latest/github/AI2Business/mkdocstrings-sourcelink/main)
44
[![codecov](https://codecov.io/gh/AI2Business/mkdocstrings-sourcelink/branch/main/graph/badge.svg?token=DKE0SHCRF7)](https://codecov.io/gh/AI2Business/mkdocstrings-sourcelink)
55
[![Code Style: Black](https://img.shields.io/badge/code%20style-black-black.svg)](https://github.com/ambv/black)
6+
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/AI2Business/mkdocstrings-sourcelink.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/AI2Business/mkdocstrings-sourcelink/context:python)
67

78
# mkdocstrings-sourcelink
89

docs/assets/img/export.png

-5.01 KB
Loading

0 commit comments

Comments
 (0)