Bump version: 1.1.0 → 1.2.0-rc1 #3
Workflow file for this run
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
--- | |
name: "Prerelease" | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+' | |
jobs: | |
distribute: | |
name: Distribute | |
runs-on: Ubuntu-20.04 | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v2 | |
- name: Retrieve the tag | |
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Setup the dependencies | |
run: | | |
python -m pip install --upgrade pipenv | |
pipenv install --dev | |
- name: Publish the release to GitHub | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: ${{ env.TAG }} release | |
draft: false | |
prerelease: true |