Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code committed Jan 18, 2023
1 parent 24aecfd commit 6acb939
Showing 1 changed file with 73 additions and 73 deletions.
146 changes: 73 additions & 73 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,77 +20,77 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# todo: Enable below to auto-publish these packages to PyPI on new push with tags
# # This workflow contains a single job called "build"
# release:
# name: Create Release
# runs-on: ubuntu-20.04
# if: startsWith(github.event.ref, 'refs/tags/v')
#
# strategy:
# matrix:
# python-versions: [3.8]
#
# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v2
#
# - name: generate change log
# uses: heinrichreimer/github-changelog-generator-action@v2.1.1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# issues: true
# issuesWoLabels: true
# pullRequests: true
# prWoLabels: true
# unreleased: true
# addSections: '{"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}}'
# output: CHANGELOG.md
#
# - uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-versions }}
#
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install tox-gh-actions poetry
#
# - name: pre-publish documentation
# run: |
# poetry install -E doc
# poetry run mkdocs build
#
# - name: publish documentation
# uses: peaceiris/actions-gh-pages@v3
# with:
# personal_token: ${{ secrets.PERSONAL_TOKEN }}
# publish_dir: ./site
#
# - name: Build wheels and source tarball
# run: >-
# poetry build
#
# - name: show temporary files
# run: >-
# ls -l
#
# - name: create github release
# id: create_release
# uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# body_path: ./CHANGELOG.md
# files: dist/*.whl
# draft: false
# prerelease: false
#
# - name:
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# skip_existing: true
todo: Enable below to auto-publish these packages to PyPI on new push with tags
# This workflow contains a single job called "build"
release:
name: Create Release
runs-on: ubuntu-20.04
if: startsWith(github.event.ref, 'refs/tags/v')

strategy:
matrix:
python-versions: [3.8]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: generate change log
uses: heinrichreimer/github-changelog-generator-action@v2.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
issues: true
issuesWoLabels: true
pullRequests: true
prWoLabels: true
unreleased: true
addSections: '{"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}}'
output: CHANGELOG.md

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-versions }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox-gh-actions poetry
- name: pre-publish documentation
run: |
poetry install -E doc
poetry run mkdocs build
- name: publish documentation
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: ./site

- name: Build wheels and source tarball
run: >-
poetry build
- name: show temporary files
run: >-
ls -l
- name: create github release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: ./CHANGELOG.md
files: dist/*.whl
draft: false
prerelease: false

- name:
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true

0 comments on commit 6acb939

Please sign in to comment.