Skip to content

Commit

Permalink
Testing release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
naddeoa committed Dec 20, 2023
1 parent 94e5cdd commit 8c6e294
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 2 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,62 @@ jobs:
- name: Delete docker images and cache
shell: bash
run: docker system prune -a -f

release:
name: Release
if: ${{ github.event_name == 'push' }}
needs: [build]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v4
name: Install Python
with:
python-version: "3.10.8"

- uses: Gr1N/setup-poetry@v8
name: Install poetry
with:
poetry-version: 1.7.1

- name: Install python dependencies
run: poetry install

- name: Generate exe
run: make build-binary

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
draft: false
prerelease: false
body: |
Install with pip:
```
pip install booty-cli
```
Or download a binary below
- name: PyPi Publish
shell: bash
run: poetry publish -u __token__ -p ${{ secrets.PYPI_KEY }}

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/booty/booty
asset_name: booty
asset_content_type: application/bin
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ build-binary: $(binary)


$(binary): $(src)
poetry run pyinstaller ./booty/cli.py -n booty
poetry run pyinstaller ./booty/cli.py -n booty -y

##
## Run targets
Expand Down
1 change: 1 addition & 0 deletions experiments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- Don't attempt to install targets if their dependencies can't be installed
- Update the exection to show the current line from stdout on the row details. Going to be a little big to refactor
- Get docker build running in CI. Need to specify ssh private keys
- Update pypi metadata

- Add support for importing recipes
- Make a treesitter integration
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "booty"
name = "booty-cli"
version = "1.0.0"
description = ""
authors = ["Anthony Naddeo <[email protected]>"]
Expand Down

0 comments on commit 8c6e294

Please sign in to comment.