From 71ed83b9907639a72fc1cb50afb6574e2c91f16b Mon Sep 17 00:00:00 2001 From: Mackenzie Mathis Date: Sun, 23 Mar 2025 20:27:11 +0100 Subject: [PATCH 1/2] Create release-pypi.yaml --- .github/workflows/release-pypi.yaml | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/release-pypi.yaml diff --git a/.github/workflows/release-pypi.yaml b/.github/workflows/release-pypi.yaml new file mode 100644 index 0000000..754996c --- /dev/null +++ b/.github/workflows/release-pypi.yaml @@ -0,0 +1,51 @@ +name: release + +on: + push: + tags: + - 'v*.*.*' + pull_request: + branches: + - main + types: + - labeled + - opened + - edited + - synchronize + - reopened + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Cache dependencies + id: pip-cache + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip + restore-keys: | + ${{ runner.os }}-pip + + - name: Install dependencies + run: | + pip install --upgrade pip + pip install wheel + # see https://github.com/pypa/twine/issues/1216#issuecomment-2629069669 + pip install "packaging>=24.2" + + - name: Checkout code + uses: actions/checkout@v3 + + + - name: Build and publish to PyPI + if: ${{ github.event_name == 'push' }} + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }} + run: | + make dist + ls dist/ + tar tvf dist/aros_node-*.tar.gz + python3 -m twine upload dist/* From f82cae5b74a32623bae751dc49bd07a357c922cb Mon Sep 17 00:00:00 2001 From: Mackenzie Mathis Date: Sun, 23 Mar 2025 20:27:53 +0100 Subject: [PATCH 2/2] Delete .github/workflows/.github/workflows directory --- .../.github/workflows/release-pypi.yml | 51 ------------------- 1 file changed, 51 deletions(-) delete mode 100644 .github/workflows/.github/workflows/release-pypi.yml diff --git a/.github/workflows/.github/workflows/release-pypi.yml b/.github/workflows/.github/workflows/release-pypi.yml deleted file mode 100644 index 754996c..0000000 --- a/.github/workflows/.github/workflows/release-pypi.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: release - -on: - push: - tags: - - 'v*.*.*' - pull_request: - branches: - - main - types: - - labeled - - opened - - edited - - synchronize - - reopened - -jobs: - release: - runs-on: ubuntu-latest - - steps: - - name: Cache dependencies - id: pip-cache - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip - restore-keys: | - ${{ runner.os }}-pip - - - name: Install dependencies - run: | - pip install --upgrade pip - pip install wheel - # see https://github.com/pypa/twine/issues/1216#issuecomment-2629069669 - pip install "packaging>=24.2" - - - name: Checkout code - uses: actions/checkout@v3 - - - - name: Build and publish to PyPI - if: ${{ github.event_name == 'push' }} - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }} - run: | - make dist - ls dist/ - tar tvf dist/aros_node-*.tar.gz - python3 -m twine upload dist/*