Skip to content

Commit

Permalink
version bump v0.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
URenko committed Oct 21, 2023
1 parent 5f0e21c commit 289adb0
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 23 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,3 @@ jobs:
- uses: actions/upload-artifact@v3
with:
path: ./dist/

package:
runs-on: ubuntu-latest
steps:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.12'
architecture: x64
- uses: actions/checkout@v3
- name: Install dependencies
run: |
pip install --upgrade build
- name: Package Application
run: |
python3 -m build
- uses: actions/upload-artifact@v3
with:
path: ./dist/
76 changes: 76 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

on:
workflow_dispatch:

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/

publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/accesser

permissions:
id-token: write

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/accesser
permissions:
id-token: write

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Because the main users of this project are in mainland China, you may encounter

## Usage
### If you don't know what Python is
Download Windows executable program from [here](https://github.com/URenko/Accesser/releases/download/v0.8.4/accesser.exe) and run it. The first time you use it, you will be asked to install a certificate, just select yes.
Download Windows executable program from [here](https://github.com/URenko/Accesser/releases/download/v0.8.5/accesser.exe) and run it. The first time you use it, you will be asked to install a certificate, just select yes.
### If Python 3.10* or later is already installed
```
pip3 install -U accesser[doh]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## 使用
### 如果不知道什么是Python
[这里](https://github.com/URenko/Accesser/releases/download/v0.8.4/accesser.exe)下载Windows一键程序,运行既可,首次使用会要求安装证书,选是即可。
[这里](https://github.com/URenko/Accesser/releases/download/v0.8.5/accesser.exe)下载Windows一键程序,运行既可,首次使用会要求安装证书,选是即可。
### 如果已经安装了Python 3.10*或更高版本
```
pip3 install -U accesser[doh]
Expand Down
2 changes: 1 addition & 1 deletion accesser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

__version__ = '0.8.4'
__version__ = '0.8.5'

import os, sys
import json
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "accesser"
version = "0.8.4"
version = "0.8.5"
authors = [
{ name="URenko" },
]
Expand Down

0 comments on commit 289adb0

Please sign in to comment.