Skip to content

Commit

Permalink
update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zihuaihuai committed Oct 30, 2024
1 parent b563321 commit 6f2dff9
Showing 1 changed file with 33 additions and 38 deletions.
71 changes: 33 additions & 38 deletions .github/workflows/tagged_release.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,42 @@
name: Tagged Release

on:
push:
branches:
- master
tags:
- v[0-9]+.[0-9]+.[0-9]+*

release:
types: [published]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Create Github release.
uses: "marvinpinto/action-automatic-releases@latest"
with:
automatic_release_tag: true
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
LICENSE
dist/*
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.NEW_PYPI_API_TOKEN }}
verbose: true
- uses: actions/checkout@v3

- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Create Github release.
uses: "marvinpinto/action-automatic-releases@latest"
with:
automatic_release_tag: "latest"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
LICENSE
dist/*
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.NEW_PYPI_API_TOKEN }}
verbose: true

0 comments on commit 6f2dff9

Please sign in to comment.