Skip to content

Commit

Permalink
Merge pull request #7 from techman83/optimise_release_process
Browse files Browse the repository at this point in the history
Update Release Process
  • Loading branch information
techman83 authored Apr 27, 2021
2 parents 6bcde5f + 4e96a95 commit b5670c3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 33 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
paths:
- filament_scale_enhanced/fse_version.py

jobs:
release:
Expand All @@ -24,9 +26,9 @@ jobs:
- name: Run pytest
run: pytest -v
- name: Build package
run: python setup.py sdist
run: python setup.py sdist --formats=zip
- name: Rename build artifact
run: find dist/. -name "*.tar.gz" -type f -exec bash -c 'x="{}"; mv -v "$x" "${x// /_}"' \;
run: find dist/. -name "*.zip" -type f -exec bash -c 'x="{}"; mv -v "$x" "Filament_Scale_Enhanced.zip"' \;
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand All @@ -35,4 +37,4 @@ jobs:
automatic_release_tag: "v${{ env.VERSION }}"
files: |
LICENSE.txt
dist/*.tar.gz
dist/Filament_Scale_Enhanced.zip
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ on:
push:
branches-ignore:
- main
- development
pull_request:
branches-ignore:
- main

jobs:
test:
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/test_release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion filament_scale_enhanced/fse_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.2.3"
VERSION = "0.2.4"

0 comments on commit b5670c3

Please sign in to comment.