Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #93 from TaykYoku/2.0_init2
Browse files Browse the repository at this point in the history
[2.0] change github deployment workflow
  • Loading branch information
TaykYoku authored Jun 13, 2022
2 parents 35d0098 + a55b44f commit 3c4d372
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,25 @@ jobs:
run: pip install build readme_renderer diraccfg
- name: Validate README for PyPI
run: python -m readme_renderer README.rst -o /tmp/README.html
- name: Publish ${GITHUB_REF##*/} release to GitHub
- name: Make PEP-440 style release on GitHub
id: PEP-440
run: |
NEW_STYLE=${GITHUB_REF##*/}
echo "Use ${NEW_STYLE}" version
echo ::set-output name=tag_name::"v$NEW_STYLE"
echo ::set-output name=target_commitish::"$(git rev-parse HEAD)"
- name: Publish ${{ steps.PEP-440.outputs.tag_name }} release to GitHub
if: github.event_name == 'push'
uses: softprops/action-gh-release@v1
with:
target_commitish: $(git rev-parse HEAD)
target_commitish: ${{ steps.PEP-440.outputs.target_commitish }}
body_path: release.notes
tag_name: ${GITHUB_REF##*/}
- name: Get ${GITHUB_REF##*/} tag
tag_name: ${{ steps.PEP-440.outputs.tag_name }}
- name: Get ${{ steps.PEP-440.outputs.tag_name }} tag
if: github.event_name == 'push'
uses: actions/checkout@v2
with:
ref: ${GITHUB_REF##*/}
ref: ${{ steps.PEP-440.outputs.tag_name }}
- name: Build distributions
run: python -m build
- name: Publish package on PyPI
Expand Down

0 comments on commit 3c4d372

Please sign in to comment.