From cabef7f826df53a42d9694aef47ea94067177afc Mon Sep 17 00:00:00 2001 From: Vlad Pronsky Date: Sat, 6 May 2023 16:57:12 +0300 Subject: [PATCH] update ci --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ .github/workflows/{ci.yml => test.yml} | 4 ++-- readme.md | 2 ++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml rename .github/workflows/{ci.yml => test.yml} (96%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..96441b0 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: publish to pypi + +on: + release: + types: [created] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - run: python -m pip install build + - run: python -m build --sdist --wheel --outdir dist/ . + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/test.yml similarity index 96% rename from .github/workflows/ci.yml rename to .github/workflows/test.yml index b09e589..2246990 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: ci +name: test on: [push] @@ -6,7 +6,7 @@ env: PIP_ROOT_USER_ACTION: ignore jobs: - build: + test: runs-on: ubuntu-latest strategy: matrix: diff --git a/readme.md b/readme.md index 0845a00..cb4de9c 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,5 @@ +# twscrape + Twitter GraphQL and Search API implementation with [SNScrape](https://github.com/JustAnotherArchivist/snscrape) data models. ## Install