Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbalogh committed Nov 5, 2020
1 parent fd8e43c commit e6fbde8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,17 @@ jobs:
id: file_changes
uses: trilom/file-changes-action@v1.2.3

- name: Output changed files
id: changed_files
run: echo ${{steps.file_changes.outputs.files_modified}}

- name: Get VERSION number
id: get_version
if: true == contains(${{steps.file_changes.outputs.files_modified}}, 'VERSION')
if: true == contains(steps.file_changes.outputs.files_modified, 'VERSION')
run: echo "::set-output name=version::$(cat VERSION)"

- name: Create Release
if: true == contains(${{steps.file_changes.outputs.files_modified}}, 'VERSION')
if: true == contains(steps.file_changes.outputs.files_modified, 'VERSION')
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -61,7 +65,7 @@ jobs:
prerelease: false

- name: Upload Assets To Release
if: true == contains(${{steps.file_changes.outputs.files_modified}}, 'VERSION')
if: true == contains(steps.file_changes.outputs.files_modified, 'VERSION')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -71,10 +75,10 @@ jobs:
file_glob: true

- name: Upload Assets to Pypi
if: true == contains(steps.file_changes.outputs.files_modified, 'VERSION')
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
if: true == contains(${{steps.file_changes.outputs.files_modified}}, 'VERSION')
run: |
twine upload dist/*

0 comments on commit e6fbde8

Please sign in to comment.