Skip to content

Commit

Permalink
CI: Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 committed Jul 31, 2024
1 parent 69027cb commit 36d9f9a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release new drakpdb version

on:
release:
types: [published]

jobs:
release_artifacts:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
workflow_conclusion: success
- uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: |
drakpdb-wheels/*
upload-release-files: true
release-upload-url: ${{ github.event.release.upload_url }}
- name: Publish to PyPi
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}
packages-dir: drakpdb-wheels/

0 comments on commit 36d9f9a

Please sign in to comment.