From aa8531da72d5af83919ee7720ecb47f5bff376ac Mon Sep 17 00:00:00 2001 From: tonyfast Date: Tue, 21 Nov 2023 01:22:02 -0800 Subject: [PATCH] rm prerelease and secrets cause were using openid --- .github/workflows/prerelease.yml | 29 ----------------------------- .github/workflows/release.yml | 17 +++++++++-------- 2 files changed, 9 insertions(+), 37 deletions(-) delete mode 100644 .github/workflows/prerelease.yml diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml deleted file mode 100644 index 447cc36b..00000000 --- a/.github/workflows/prerelease.yml +++ /dev/null @@ -1,29 +0,0 @@ - -name: pre release -on: - push: - tags: - - '*' -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.11 - uses: actions/setup-python@v4 - with: - python-version: 3.11 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install hatch - - name: Test the project - run: hatch run test:run - - name: Build - run: hatch build - - name: Publish package - run: hatch publish -r test --user ${{secrets.HATCH_INDEX_USER}} --auth ${{secrets.HATCH_TEST_INDEX_AUTH}} - if: github.event_name != 'release' - - name: Test the released packaged - run: hatch run release:test - if: github.event_name != 'release' \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4609e68..6f317f9d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies run: | python -m pip install --upgrade pip @@ -23,11 +23,12 @@ jobs: run: hatch run test:run - name: Build run: hatch build - - name: Publish to mainline - run: hatch publish --user ${{secrets.HATCH_INDEX_USER}} --auth ${{secrets.HATCH_INDEX_AUTH}} + - name: Publish package + run: hatch publish -r test if: github.event_name != 'release' - - name: Test pypi release - run: | - pip install nbconvert-a11y pytest - pytest + - name: Test the released packaged + run: hatch run release:test + if: github.event_name != 'release' + - name: Publish to mainline + run: hatch publish --user if: github.event_name != 'release'