generated from astariul/github-hosted-pypi
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (66 loc) · 2.1 KB
/
register.yml
File metadata and controls
69 lines (66 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: register
on:
workflow_dispatch:
inputs:
package_name:
description: 'Package name'
required: true
type: string
version:
description: 'Version of the package'
required: true
type: string
author:
description: 'Author(s) of the package'
required: true
type: string
short_desc:
description: 'A short description of the package'
required: true
type: string
long_desc:
description: 'A longer description of the package (HTML)'
required: true
type: string
homepage:
description: 'Homepage of the package (link to the github repository)'
required: true
type: string
link:
description: 'Link used for `pip`. For example, for a github-hosted package refered by the tag `v3.0.2`, it would be : git+https://github.com/huggingface/transformers@v3.0.2'
required: true
type: string
jobs:
update:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Run Action
env:
PKG_ACTION: REGISTER
PKG_NAME: ${{ inputs.package_name }}
PKG_VERSION: ${{ inputs.version }}
PKG_AUTHOR: ${{ inputs.author }}
PKG_SHORT_DESC: ${{ inputs.short_desc }}
PKG_LONG_DESC: ${{ inputs.long_desc }}
PKG_HOMEPAGE: ${{ inputs.homepage }}
PKG_LINK: ${{ inputs.link }}
run: |
pip install beautifulsoup4
python .github/actions.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: ':package: [:robot:] Register package in PyPi index'
title: '[🤖] Register `${{ inputs.package_name }}` in PyPi index'
body: Automatically generated PR, registering `${{ inputs.package_name }}` in PyPi
index.
branch-suffix: random
delete-branch: true