Skip to content

Commit

Permalink
🔨Publish and Release (#15)
Browse files Browse the repository at this point in the history
* 🔨Publish and Release
  • Loading branch information
AyslanBatista committed Jun 18, 2024
1 parent da9f5e4 commit ee82a44
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 35 deletions.
67 changes: 33 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,42 @@ name: publish-and-release
on:
push:
tags:
- 'v*.*.*'
- "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: Release ${{ github.ref }}
body: "Release of version ${{ github.ref }}"
draft: false
prerelease: false
- 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
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: "Release of version ${{ github.ref }}"
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion encryptdef/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.3.dev1
1.0.6.dev0

0 comments on commit ee82a44

Please sign in to comment.