Skip to content

Commit

Permalink
🔨Publish and Release (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyslanBatista authored Jun 18, 2024
1 parent 550328d commit add0c67
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 5 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: publish-and-release

on:
push:
tags:
- 'v*'

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.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build

- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: "Release of version ${{ github.ref }}"
draft: false
prerelease: false
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Detectar o sistema operacional
OS := $(shell uname)

# Variáveis para simplificar comandos
# Variáveis para simplificar os comandos
VENV_DIR=.venv
VENV_BIN=$(VENV_DIR)/bin
PYTHON=$(VENV_BIN)/python
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ $ pip install encryptdef
```
<code><b>Importante: Mantenha a chave de encriptação em segredo e não a perca. Sem a chave correta, não será possível desencriptar os dados ou arquivos.</b></code>


## Como usar:
#### Modo CLI

Expand Down
2 changes: 1 addition & 1 deletion encryptdef/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.3.dev0
1.0.3.dev1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Issues = "https://github.com/AyslanBatista/encryptdef/issues"

# Lista de quais são os nomes dos entrypoints e os pacotes entrypoints
[project.scripts]
# Forma de usar diretamente o programa ex: encryptdef --version
# Forma de usar diretamente o programa ex: encryptdef --version
encryptdef = "encryptdef.__main__:main"

[build-system]
Expand Down
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# dev dependencies
# dev dependencies
ipython
ipdb

Expand Down

0 comments on commit add0c67

Please sign in to comment.