Skip to content

Commit

Permalink
Ctrl felix patch 1 (#3)
Browse files Browse the repository at this point in the history
* Update main.yml

* Update compile.py

* Update requirements.txt

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml
  • Loading branch information
ctrl-Felix authored Jun 19, 2022
1 parent 44ece0c commit b64874e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand All @@ -23,17 +24,24 @@ 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
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
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
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/cosmospy_protobuf-0.0.0.tar.gz
tag_name: ${{ steps.tag.outputs.release_tag }}
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

4 changes: 2 additions & 2 deletions compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
grpcio-tools ==1.46.3

0 comments on commit b64874e

Please sign in to comment.