diff --git a/.github/workflows/new-release.yml b/.github/workflows/new-release.yml index 112c588..02eb44f 100644 --- a/.github/workflows/new-release.yml +++ b/.github/workflows/new-release.yml @@ -3,30 +3,20 @@ name: Release Action on: release: types: [published] - branches: - - main -permissions: - contents : read + branches: [ main ] + +# allow manual activation + workflow_dispatch: + jobs: - deploy: + build: runs-on: ubuntu-latest - steps: + steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + + - name: Run sample output check if working + run: echo Hello! +