Skip to content

Commit

Permalink
Merge pull request #4 from vibbits/release_ci
Browse files Browse the repository at this point in the history
Initial version of an automatic release workflow
  • Loading branch information
lducazu authored May 18, 2022
2 parents f02903e + 4e32705 commit a4dd2c2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
tags:
- 'v*'
workflow_dispatch:

name: Release Workflow

jobs:
release:
name: Package release on GitHub
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Create github release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
prerelease: false
draft: true
files: |
dist/irdata-*.tar.gz
dist/irdata-*-py3-none-any.whl
- name: Publish to PyPI
run: poetry publish -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASSWORD }}


0 comments on commit a4dd2c2

Please sign in to comment.