Skip to content

Commit

Permalink
DOC, CI: added icon and badges, added publication workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jotelha committed Jul 4, 2024
1 parent 51b4ae2 commit 9c0c429
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: publish

on:
push:
branches:
- main
- master
tags:
- '*'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install requirements
run: |
pip install --upgrade build
pip install --upgrade setuptools wheel setuptools-scm[toml]
pip list
- name: Package distribution
run: |
python -m build
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
continue-on-error: true
with:
user: __token__
password: ${{ secrets.test_pypi_password }}
repository-url: https://test.pypi.org/legacy/
verbose: true
skip-existing: true

- name: Publish distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
verbose: true
13 changes: 13 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
README
======

.. |dtool| image:: https://github.com/jic-dtool/dtool-lookup-client/blob/master/icons/22x22/dtool_logo.png?raw=True
:height: 20px
:target: https://github.com/jic-dtool/dtoolcore

.. |pypi| image:: https://img.shields.io/pypi/v/dtool-lookup-client
:target: https://pypi.org/project/dtool-lookup-client/
:alt: PyPi package

.. |test| image:: https://img.shields.io/github/actions/workflow/status/jic-dtool/dtool-lookup-client/test.yml?branch=master&label=tests
:target: https://github.com/jic-dtool/dtool-lookup-client/actions/workflows/test.yml

|dtool| |pypi| |test|

dtool plugin for interacting with dserver

Installation
Expand Down
Binary file added icons/22x22/dtool_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9c0c429

Please sign in to comment.