-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from galactic-forensics/controller_release_wor…
…kflow Controller release workflow
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: GUI Release Windows | ||
|
||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'cnt_v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
build: | ||
name: Controller python interface release | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.12] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup env | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
- name: Install the latest version of rye | ||
uses: eifinger/setup-rye@v1 | ||
- name: Sync Rye | ||
run: | | ||
rye pin ${{ matrix.python-version }} | ||
rye sync | ||
- name: Build the controller | ||
run: | | ||
cd controller | ||
rye build -- out dist | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ${{ github.workspace }}/controller/dist/* | ||
tag_name: ${{ env.RELEASE_VERSION }} | ||
name: DigOutBox controller ${{ env.RELEASE_VERSION }} | ||
body_path: ${{ github.workspace }}/controller/release_text.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This is DigOutBox controller release `cnt_v0.2.0`. | ||
|
||
This is the first release of the controller python interface on GitHub directly. Please see the [documentation](https://digoutbox.readthedocs.io/) for further information. |