mirror of
https://github.com/jung-geun/PSO.git
synced 2025-12-19 20:44:39 +09:00
23-07-18
pypi 수정 2 release 파일 자동 생성
This commit is contained in:
23
.github/workflows/Release-Tag.yml
vendored
Normal file
23
.github/workflows/Release-Tag.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Release Tag
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Get Version
|
||||||
|
run: echo "##[set-output name=version;]$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')"
|
||||||
|
id: extract_version_name
|
||||||
|
- name: Create Release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ steps.extract_version_name.outputs.version }}
|
||||||
|
release_name: Release ${{ steps.extract_version_name.outputs.version }}
|
||||||
|
body: |
|
||||||
|
Release ${{ steps.extract_version_name.outputs.version }}
|
||||||
4
.github/workflows/pypi.yml
vendored
4
.github/workflows/pypi.yml
vendored
@@ -24,5 +24,5 @@ jobs:
|
|||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
python setup.py bdist_wheel
|
python setup.py bdist_wheel sdist
|
||||||
twine upload dist/*.whl
|
twine upload dist/*.whl dist/*.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user