From b85eb32dcc2bd0bbfe44b186bceb55288f34cd0b Mon Sep 17 00:00:00 2001 From: Jan Ullmann <102742052+ullmannJan@users.noreply.github.com> Date: Wed, 26 Jun 2024 01:14:10 +0200 Subject: [PATCH] started on compiling workflow --- .github/workflows/compile.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..8f3ae85 --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,39 @@ +name: Compile Project + +on: + push: + tags: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.x + + - name: Install dependencies + run: | + pip install . + pip install pyinstaller + + - name: Build plugin + run: | + python ./compiling/compile.py + + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + tag="${GITHUB_REF#refs/tags/}" + + gh release create "$tag" \ + --title="$tag" \ + --draft \ + Measury-$tag.zip \ No newline at end of file