Version update 0.5.31 #80
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: PyPFB release | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
build-and-run: | |
name: Build and Run | |
runs-on: ubuntu-latest | |
if: contains( github.event.pull_request.labels.*.name, 'release') | |
steps: | |
- uses: actions/checkout@v1 | |
- name: 'Get Previous tag' | |
id: previoustag | |
uses: "WyriHaximus/github-action-get-previous-tag@master" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- name: fix remote | |
run: git remote set-url origin https://github.com/uc-cdis/pypfb.git | |
- name: switch to master branch | |
run: git checkout master | |
- name: Bump release version | |
id: bump_version | |
uses: christian-draeger/[email protected] | |
with: | |
current-version: ${{ steps.previoustag.outputs.tag }} | |
version-fragment: 'bug' | |
- name: Install python 3 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install Gen3 release-helper$ | |
run: | | |
pip install wheel | |
python --version | |
pip install --user --editable git+https://github.com/uc-cdis/release-helper.git@master#egg=gen3git | |
python -m gen3git --github-access-token ${{ secrets.GITHUB_TOKEN }} tag ${{ steps.bump_version.outputs.next-version }} | |
python -m gen3git --github-access-token ${{ secrets.GITHUB_TOKEN }} --from-tag ${{ steps.previoustag.outputs.tag }} release | |
python -m gen3git --github-access-token ${{ secrets.GITHUB_TOKEN }} --from-tag ${{ steps.previoustag.outputs.tag }} gen --markdown | |
cat release_notes.md | |
- name: Create release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.bump_version.outputs.next-version }} | |
artifacts: "release.tar.gz,foo/*.txt" | |
bodyFile: "release_notes.md" | |
token: ${{ secrets.GITHUB_TOKEN }} |