Skip to content

Commit

Permalink
Add GitHub Actions to automate the release process.
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyChiang committed Mar 12, 2024
1 parent ec01e93 commit bbabdb1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Python package

on:
workflow_dispatch:
inputs:
tag:
description: Which tag to create and release?
required: true
default: v0.0.0

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.7"

- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel Cython

- name: Build sdist
run: python setup.py sdist

- name: Upload sdist
if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag != ''
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.tag }}
files: dist/PyQuda-${{ github.event.inputs.tag }}.tar.gz
fail_on_unmatched_files: true
2 changes: 1 addition & 1 deletion pyquda/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6.3"
__version__ = "0.6.4"

0 comments on commit bbabdb1

Please sign in to comment.