Skip to content

Commit

Permalink
Switch to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Sep 20, 2024
1 parent 9315331 commit e819ab9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PYPI Publish

on:
pull_request:
push:
branches:
- "master"
tags:
- "[0-9]+.[0-9]+.[0-9]+"

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pytest-odoo
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit e819ab9

Please sign in to comment.