Skip to content

Commit

Permalink
ci: try to add automatic pypi release
Browse files Browse the repository at this point in the history
Signed-off-by: matthias.gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Sep 13, 2024
1 parent c6aadd8 commit e74d009
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/make_release_bins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,28 @@ jobs:
- name: install fuse
run: |
sudo apt-get update --fix-missing
sudo apt-get install -y -f -o Acquire::Retries=3 fuse
sudo apt-get install -y -f -o Acquire::Retries=3 fuse python
- name: configure
run: ./configure.sh --release

- name: make
run: make appimage-bld/osc-tui-x86_64.AppImage

- name: twine
run: |
python -m venv env
. .venv/bin/activate
python -m pip install -e .
python -m pip install --upgrade build
python -m pip install --upgrade twine
python -m build
twine upload --verbose dist/*
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PIP_TOKEN }}


- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.TOKEN }}"
Expand Down
4 changes: 4 additions & 0 deletions osc_tui/mainForm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

import osc_sdk_python

import time

from osc_tui import createImage
from osc_tui import createKeyPair
from osc_tui import createSnapshot
Expand Down Expand Up @@ -231,6 +233,7 @@ def set_up_handlers(self):
super().set_up_handlers()
self.add_handlers({curses.KEY_RIGHT: self.h_exit_down})
self.add_handlers({curses.KEY_LEFT: self.h_exit_up})
#self.add_handlers({curses.ascii.TAB: self.h_exit_up})

def h_cursor_line_up(self, input):
super().h_cursor_line_up(input)
Expand Down Expand Up @@ -436,6 +439,7 @@ def switch_to_keypairs(self, _):

def set_up_handlers(self):
super().set_up_handlers()

self.add_handlers({"q": self.quit_key})
self.add_handlers({"^Q": quit})
self.add_handlers({"h": popup.showHelp})
Expand Down

0 comments on commit e74d009

Please sign in to comment.