Intial commit
This commit is contained in:
		
							
								
								
									
										24
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,24 @@
 | 
			
		||||
name: Build
 | 
			
		||||
on: push
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  release:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
    - name: Set up Python 3.9
 | 
			
		||||
      uses: actions/setup-python@v1
 | 
			
		||||
      with:
 | 
			
		||||
        python-version: 3.9
 | 
			
		||||
    - name: Install dependencies
 | 
			
		||||
      run: |
 | 
			
		||||
        python -m pip install --upgrade pip
 | 
			
		||||
        pip install -r requirements.txt
 | 
			
		||||
    - name: Build
 | 
			
		||||
      run: |
 | 
			
		||||
        python setup.py sdist
 | 
			
		||||
    - name: Upload Artifact
 | 
			
		||||
      uses: actions/upload-artifact@v2
 | 
			
		||||
      with:
 | 
			
		||||
        name: jira-tracker.tar.gz
 | 
			
		||||
        path: dist/jira-tracker-*.tar.gz
 | 
			
		||||
							
								
								
									
										54
									
								
								.github/workflows/release.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								.github/workflows/release.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,54 @@
 | 
			
		||||
name: Publish Release
 | 
			
		||||
on:
 | 
			
		||||
    release:
 | 
			
		||||
      types:
 | 
			
		||||
      - created
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  pypi:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
    - name: Set up Python 3.9
 | 
			
		||||
      uses: actions/setup-python@v1
 | 
			
		||||
      with:
 | 
			
		||||
        python-version: 3.9
 | 
			
		||||
    - name: Update Version
 | 
			
		||||
      run: |
 | 
			
		||||
        sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF}/g" jira_tracker/__init__.py
 | 
			
		||||
    - 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 }}
 | 
			
		||||
  release:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
    - name: Set up Python 3.9
 | 
			
		||||
      uses: actions/setup-python@v1
 | 
			
		||||
      with:
 | 
			
		||||
        python-version: 3.9
 | 
			
		||||
    - name: Update Version
 | 
			
		||||
      run: |
 | 
			
		||||
        sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF}/g" jira_tracker/__init__.py
 | 
			
		||||
    - name: Install dependencies
 | 
			
		||||
      run: |
 | 
			
		||||
        python -m pip install --upgrade pip
 | 
			
		||||
        pip install -r requirements.txt
 | 
			
		||||
    - name: Build
 | 
			
		||||
      run: |
 | 
			
		||||
        python setup.py sdist
 | 
			
		||||
    - name: Upload to release
 | 
			
		||||
      uses: JasonEtco/upload-to-release@v0.1.1
 | 
			
		||||
      with:
 | 
			
		||||
        args: dist/jira-tracker-*.tar.gz
 | 
			
		||||
      env:
 | 
			
		||||
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
		Reference in New Issue
	
	Block a user