Skip to content

Commit

Permalink
More release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Sep 7, 2024
1 parent 7a0a87e commit fc0a402
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 15 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,26 +94,19 @@ jobs:

create-release:
name: Create Github Release
uses: ./.github/workflows/github-release.yml
if: ${{ inputs.kind == 'release' && success() }}
needs:
- build-python-package
- deploy-python-package

runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ inputs.kind == 'release' && success() }}
needs:
- build-python-package
- deploy-python-package
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: "v${{ needs.build-python-package.outputs.version }}"
release_name: "Release v${{ needs.build-python-package.outputs.version }}"
body: |
Release ${{ needs.build-python-package.outputs.version }}
draft: false
prerelease: false

set-pipeline-exit-status:
# This step is just so we can make github require this step, to pass checks
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Create Github Release

on: workflow_call

jobs:
release:
name: Publish Python Wheel
runs-on: ubuntu-latest
steps:
- name: Download Source Tarball
uses: actions/download-artifact@v4
with:
name: Source Tarball
path: dist

- name: Download x86 Python Package Artifacts
uses: actions/download-artifact@v4
with:
name: Python Wheel x86_64
path: dist

- name: Download arm64 Python Package Artifacts
uses: actions/download-artifact@v4
with:
name: Python Wheel aarch64
path: dist

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: "v${{ needs.build-python-package.outputs.version }}"
release_name: "Release v${{ needs.build-python-package.outputs.version }}"
body: |
Release ${{ needs.build-python-package.outputs.version }}
draft: false
prerelease: false

- name: Upload Source Tarball
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: dist/*.tar.gz

- name: Upload x86-64 Wheel
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: dist/*x86_64.whl

- name: Upload arm64 Wheel
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: dist/*aarch64.whl
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ manhole.install()
And inject it with gdbdbg-inject:

```
gdbdbg <pid> manhole.py
gdbdbg-inject <pid> manhole.py
```
2 changes: 1 addition & 1 deletion src/gdbdbg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0

__version__ = "0.2.0"
__version__ = "0.2.1"

0 comments on commit fc0a402

Please sign in to comment.