Skip to content

Commit

Permalink
Merge pull request #43 from galactic-forensics/controller_release_wor…
Browse files Browse the repository at this point in the history
…kflow

Controller release workflow
  • Loading branch information
trappitsch committed Feb 8, 2024
2 parents d43ae95 + 646eef0 commit eb9c14d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/controller_release.yml
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
3 changes: 3 additions & 0 deletions controller/release_text.md
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.

0 comments on commit eb9c14d

Please sign in to comment.