Skip to content

Commit

Permalink
Update new-release.yml
Browse files Browse the repository at this point in the history
starter script
  • Loading branch information
henrynguyen50 authored Sep 26, 2024
1 parent 33c2ba7 commit 4ef7a7f
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions .github/workflows/new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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!

0 comments on commit 4ef7a7f

Please sign in to comment.