-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
XavierJiezou
committed
May 11, 2022
1 parent
e5fc3b3
commit 4f722b2
Showing
12 changed files
with
998 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*.*.*" | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Install Poetry | ||
run: pip install poetry | ||
|
||
- name: Update PATH | ||
run: echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
|
||
- name: Build project for distribution | ||
run: poetry build | ||
|
||
- name: Check Version | ||
id: check-version | ||
run: | | ||
[[ "$(poetry version --short)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \ | ||
|| echo ::set-output name=prerelease::true | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "dist/*" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
draft: false | ||
prerelease: steps.check-version.outputs.prerelease == 'true' | ||
allowUpdates: true | ||
replacesArtifacts: true | ||
|
||
# - name: Publish to PyPI | ||
# env: | ||
# POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} | ||
# run: poetry publish | ||
|
||
- name: Publish to PyPI | ||
uses: ortega2247/pypi-upload-action@master | ||
with: | ||
user: XavierJiezou | ||
password: ${{ secrets.PYPI_PASSWORD }} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,38 @@ | ||
# ys-dl | ||
|
||
Command-line program to download images from Genshin Impact Community. | ||
|
||
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/XavierJiezou/ys-dl/Release) | ||
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/c2f85c8d6b8a4892b40059703f087eab)](https://www.codacy.com/gh/XavierJiezou/ys-dl/dashboard?utm_source=github.com&utm_medium=referral&utm_content=XavierJiezou/ys-dl&utm_campaign=Badge_Grade) | ||
[![codecov](https://codecov.io/gh/XavierJiezou/ys-dl/branch/main/graph/badge.svg?token=AFQB7E7JID)](https://codecov.io/gh/XavierJiezou/ys-dl) | ||
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ys-dl) | ||
![PyPI - Downloads](https://img.shields.io/pypi/dm/ys-dl) | ||
![PyPI](https://img.shields.io/pypi/v/ys-dl) | ||
[![GitHub stars](https://img.shields.io/github/stars/XavierJiezou/ys-dl)](https://github.com/XavierJiezou/ys-dl/stargazers) | ||
[![GitHub forks](https://img.shields.io/github/forks/XavierJiezou/ys-dl)](https://github.com/XavierJiezou/ys-dl/network) | ||
[![GitHub issues](https://img.shields.io/github/issues/XavierJiezou/ys-dl)](https://github.com/XavierJiezou/ys-dl/issues) | ||
[![GitHub license](https://img.shields.io/github/license/XavierJiezou/ys-dl)](https://github.com/XavierJiezou/ys-dl/blob/main/LICENSE) | ||
|
||
## Demo | ||
|
||
## Install | ||
|
||
```bash | ||
pip install ys-dl | ||
``` | ||
|
||
## Usage | ||
|
||
`$ ys-dl` | ||
|
||
## Changelog | ||
|
||
See [CHANGELOG.md](CHANGELOG.md) | ||
|
||
## License | ||
|
||
[MIT License](License) | ||
|
||
## References | ||
|
||
- [Python dependency management and packaging made easy.](https://github.com/python-poetry/poetry) |
Empty file.
Oops, something went wrong.