Initial commit
This commit is contained in:
		
							
								
								
									
										32
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,32 @@
 | 
			
		||||
name: Build & Publish
 | 
			
		||||
on:
 | 
			
		||||
    release:
 | 
			
		||||
      types:
 | 
			
		||||
      - created
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
    - name: Set up Python 3.7
 | 
			
		||||
      uses: actions/setup-python@v1
 | 
			
		||||
      with:
 | 
			
		||||
        python-version: 3.7
 | 
			
		||||
    - name: Update Version
 | 
			
		||||
      id: semver
 | 
			
		||||
      uses: RightBrain-Networks/semver-action@1.0.0
 | 
			
		||||
      with:
 | 
			
		||||
        mode: get
 | 
			
		||||
    - name: Install dependencies
 | 
			
		||||
      run: |
 | 
			
		||||
        python -m pip install --upgrade pip
 | 
			
		||||
        pip install -r requirements.txt
 | 
			
		||||
    - name: build
 | 
			
		||||
      run: |
 | 
			
		||||
        python setup.py sdist bdist_wheel
 | 
			
		||||
    - name: PyPi Publish
 | 
			
		||||
      uses: pypa/gh-action-pypi-publish@v1.0.0a0
 | 
			
		||||
      with:
 | 
			
		||||
        user: __token__
 | 
			
		||||
        password: ${{ secrets.PYPI_TOKEN }}
 | 
			
		||||
							
								
								
									
										28
									
								
								.github/workflows/version.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/version.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,28 @@
 | 
			
		||||
name: Version & Release
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - master
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  CheckVersion:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - name: Checkout
 | 
			
		||||
      uses: actions/checkout@v1
 | 
			
		||||
    - name: Run Auto-Semver
 | 
			
		||||
      id: semver
 | 
			
		||||
      uses: RightBrain-Networks/semver-action@1.0.0
 | 
			
		||||
    - name: Create Release
 | 
			
		||||
      id: create_release
 | 
			
		||||
      uses: actions/create-release@v1
 | 
			
		||||
      if: steps['semver']['outputs']['RETURN_STATUS'] == '0'
 | 
			
		||||
      env:
 | 
			
		||||
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
      with:
 | 
			
		||||
        tag_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
 | 
			
		||||
        release_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
 | 
			
		||||
        body: Release Version ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
 | 
			
		||||
        draft: false
 | 
			
		||||
        prerelease: false
 | 
			
		||||
		Reference in New Issue
	
	Block a user