Update release pipeline
Fix versioning Fix artifact name Use artifact value as input fix output name Update workflows
This commit is contained in:
parent
2e8ec1cf9f
commit
7f16f4e6d7
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -2,7 +2,7 @@ name: Build
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
release:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
10
.github/workflows/release.yaml
vendored
10
.github/workflows/release.yaml
vendored
@ -15,7 +15,8 @@ jobs:
|
||||
python-version: 3.9
|
||||
- name: Update Version
|
||||
run: |
|
||||
sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF}/g" jira_tracker/__init__.py
|
||||
echo "Setting version to: ${GITHUB_REF:10}"
|
||||
sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF:10}/g" jira_tracker/__init__.py
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
@ -38,17 +39,20 @@ jobs:
|
||||
python-version: 3.9
|
||||
- name: Update Version
|
||||
run: |
|
||||
sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF}/g" jira_tracker/__init__.py
|
||||
echo "Setting version to: ${GITHUB_REF:10}"
|
||||
sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF:10}/g" jira_tracker/__init__.py
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
- name: Build
|
||||
id: build
|
||||
run: |
|
||||
python setup.py sdist
|
||||
echo "::set-output name=artifact::dist/jira-tracker-${GITHUB_REF:10}.tar.gz"
|
||||
- name: Upload to release
|
||||
uses: JasonEtco/upload-to-release@v0.1.1
|
||||
with:
|
||||
args: dist/jira-tracker-*.tar.gz
|
||||
args: ${{ steps.build.outputs.artifact }} application/tar+gzip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user