From 370bc597963a94be4a2a2cb8015319889a4b9000 Mon Sep 17 00:00:00 2001 From: Sam Lijin Date: Thu, 5 Dec 2024 14:02:50 -0800 Subject: [PATCH] publish gh release --- .github/workflows/publish-github-release.yaml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/publish-github-release.yaml diff --git a/.github/workflows/publish-github-release.yaml b/.github/workflows/publish-github-release.yaml new file mode 100644 index 000000000..16c68378e --- /dev/null +++ b/.github/workflows/publish-github-release.yaml @@ -0,0 +1,32 @@ +name: Publish GitHub Release + +on: + workflow_call: {} + push: + branches: [sam/py-release3] + +jobs: + release-github: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Get Changelog + id: latest_release + run: | + echo "::set-output name=changelog::$(awk '/^## \[/{if (p) exit; p=1} p' CHANGELOG.md)" + + - uses: actions/download-artifact@v4 + with: + path: gh-artifacts + merge-multiple: true + + - run: ls gh-artifacts + + - name: Create Release + if: false + uses: mikepenz/action-gh-release@v1 #softprops/action-gh-release + with: + body: ${{steps.latest_release.outputs.changelog}} + tag_name: "0.70.1" + files: gh-artifacts/*