Skip to content

Commit

Permalink
continuous delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchiLaser committed Aug 17, 2023
1 parent 8cd12fd commit 7079611
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish TimeForge to PyPI via GitHub

on:
push:
branches:
- main

jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v3

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

- name: setup environment
run: python -m pip install --upgrade build twine

- name: Build source and wheel distributions
run: make build

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_SECRET_KEY }}
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
SHELL := /bin/bash

.SILENT: clean
.IGNORE: clean

build: clean
python -m build
twine check --strict dist/*
Expand Down

0 comments on commit 7079611

Please sign in to comment.