Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
name: Upload Python Package

on:
release:
types: [published]
workflow_run:
workflows: ["Build and Release"]
types:
- completed
workflow_dispatch:

jobs:
deploy:
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build and Release

on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
changelog:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Upload artifact with CHANGELOG
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-changelog
path: CHANGELOG.md

release:
needs: [changelog]
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: ./downloaded-app-artifacts

- name: Check location
run: |
ls -la
ls -la ./downloaded-app-artifacts
ls -la ./downloaded-app-artifacts/ubuntu-latest-changelog

- name: Generate info
run: |
echo "## Summary" > info.md
awk '/^## /{if (p) exit; p=1; next} p' ./downloaded-app-artifacts/ubuntu-latest-changelog/CHANGELOG.md >> info.md

- name: Check location
run: |
ls -la
ls -la ./downloaded-app-artifacts

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
body_path: info.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading