Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify pipeline #15

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .github/workflows/deploy-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,17 @@ jobs:
needs: test
steps:
- uses: actions/checkout@v3
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v16
id: verify-changed-files
with:
files: |
src/**/*.py
setup.cfg
- name: Download artifacts
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: actions/download-artifact@v3
with:
name: built-artifacts
path: dist
- name: Publish package to Test PyPI
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- name: Publish package to PyPI
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
Expand All @@ -90,8 +80,8 @@ jobs:
- uses: actions/checkout@v3
- name: Set version release
run: |
VER=$(cat setup.cfg | grep version | cut -d "=" -f 2 | xargs)
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
VER="$(cat setup.cfg | grep version | cut -d '=' -f 2 | xargs)"
COMMIT_MESSAGE="$(git log -1 --pretty=%B)"
echo "RELEASE_VERSION=$VER" >> $GITHUB_ENV
echo "COMMIT_MESSAGE=$COMMIT_MESSAGE" >> $GITHUB_ENV
- name: Create release
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ url = https://github.com/paveldat/God-s-eye
[options]
package_dir =
=src

packages =
clickjacking
dns_lookup
Expand All @@ -25,7 +24,6 @@ packages =
ip_info_finder
pwned
phone_info

install_requires =
requests >= 2.25.1
dnspython >= 2.2.1
Expand Down