From d81b9c0bfc50d1ee10aaac264f70969c0dfac3f8 Mon Sep 17 00:00:00 2001 From: Felix <62290842+ctrl-Felix@users.noreply.github.com> Date: Sun, 19 Jun 2022 15:42:14 +0200 Subject: [PATCH 01/10] Update main.yml --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8f38b968..6d43ce26 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,8 +29,7 @@ jobs: pip install build if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Compile python protobuf files - run: | - python compile.py + run: python compile.py - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') From 0ef00fa68f35a29a628aca54f3a8b20d3b9e3ebb Mon Sep 17 00:00:00 2001 From: ctrl-felix <62290842+ctrl-Felix@users.noreply.github.com> Date: Sun, 19 Jun 2022 15:44:32 +0200 Subject: [PATCH 02/10] Update compile.py --- compile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile.py b/compile.py index 6e449ce0..82f4e91e 100644 --- a/compile.py +++ b/compile.py @@ -60,5 +60,5 @@ def remove_all_compiled_python_files(directory): remove_all_compiled_python_files(package_name) -#walk_through_project_and_compile_proto(package_name) -#walk_through_project_and_fix_imports(package_name) +walk_through_project_and_compile_proto(package_name) +walk_through_project_and_fix_imports(package_name) From 72b41a7958d0a4a4a1c0b4fd1d8191e4808c6786 Mon Sep 17 00:00:00 2001 From: ctrl-felix <62290842+ctrl-Felix@users.noreply.github.com> Date: Sun, 19 Jun 2022 15:46:31 +0200 Subject: [PATCH 03/10] Update requirements.txt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index e69de29b..3800edf7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1 @@ +grpcio-tools ==1.46.3 \ No newline at end of file From 2a9037782faf42ada428414a7136c11875c93d16 Mon Sep 17 00:00:00 2001 From: ctrl-felix <62290842+ctrl-Felix@users.noreply.github.com> Date: Sun, 19 Jun 2022 15:48:18 +0200 Subject: [PATCH 04/10] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6d43ce26..3cd36bad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install build + pip install build protoletariat if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Compile python protobuf files run: python compile.py From 4d9a083374d5ff6a0408a4925853b2022e51dd07 Mon Sep 17 00:00:00 2001 From: ctrl-felix <62290842+ctrl-Felix@users.noreply.github.com> Date: Sun, 19 Jun 2022 15:49:38 +0200 Subject: [PATCH 05/10] Update main.yml --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3cd36bad..5e653be7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,6 +30,8 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Compile python protobuf files run: python compile.py + - name: Build package + run: python -m build - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') From 0e616cedc64437e52c8124efd652c04bbbfacf76 Mon Sep 17 00:00:00 2001 From: ctrl-felix <62290842+ctrl-Felix@users.noreply.github.com> Date: Sun, 19 Jun 2022 15:52:08 +0200 Subject: [PATCH 06/10] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5e653be7..4356ec85 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,6 +23,7 @@ jobs: python-version: '3.9' # Version range or exact version of a Python version to use, using SemVer's version range syntax cache: 'pip' architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified - name: Install dependencies + - uses: arduino/setup-protoc@v1 - name: Install dependencies run: | python -m pip install --upgrade pip From 7b6e5437c524a8e5d1dc68b400d84ed23a68bfc2 Mon Sep 17 00:00:00 2001 From: Felix <62290842+ctrl-Felix@users.noreply.github.com> Date: Sun, 19 Jun 2022 17:46:49 +0200 Subject: [PATCH 07/10] Update main.yml --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4356ec85..5b912d0f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,7 +35,6 @@ jobs: run: python -m build - name: Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') with: files: dist/cosmospy_protobuf-0.0.0.tar.gz From ae1c2db485dbbc79cb4cedadc32aee0a4b1af4e3 Mon Sep 17 00:00:00 2001 From: Felix <62290842+ctrl-Felix@users.noreply.github.com> Date: Sun, 19 Jun 2022 17:52:25 +0200 Subject: [PATCH 08/10] Update main.yml --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5b912d0f..bfbd9bb8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,5 +36,6 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 with: - files: dist/cosmospy_protobuf-0.0.0.tar.gz + tag_name: beta + files: dist/* From b5a7e7ccc801b52a37e4fa56087c00a66f1c6603 Mon Sep 17 00:00:00 2001 From: Felix <62290842+ctrl-Felix@users.noreply.github.com> Date: Sun, 19 Jun 2022 22:01:47 +0200 Subject: [PATCH 09/10] Update main.yml --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bfbd9bb8..74c0bd7a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,9 +33,14 @@ jobs: run: python compile.py - name: Build package run: python -m build + - name: Generate release tag + id: tag + run: echo "::set-output name=release_tag::Build_$(date +"%Y.%m.%d_%H-%M")" - name: Release uses: softprops/action-gh-release@v1 with: - tag_name: beta + tag_name: ${{ steps.tag.outputs.release_tag }} files: dist/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 0f1ee971b6a92808f91111244bc1771bedf5e126 Mon Sep 17 00:00:00 2001 From: Felix <62290842+ctrl-Felix@users.noreply.github.com> Date: Sun, 19 Jun 2022 22:06:17 +0200 Subject: [PATCH 10/10] Update main.yml --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 74c0bd7a..659c798e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,8 @@ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions name: Create package - +permissions: + contents: write on: push: branches: [ "main" ]