Skip to content

Create a new patch release #4

Create a new patch release

Create a new patch release #4

Workflow file for this run

name: Create a new patch release
on: [workflow_dispatch]
jobs:
resources:
name: Update __init__.py patch version
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Set script permissions
run: |
chmod +x .github/workflows/scripts/update_init_version.py
chmod +x .github/workflows/scripts/release.py
- name: Update version
run: |
pwd
python .github/workflows/scripts/update_init_version.py --file-path pyopenms_viz/__init__.py
- name: Commit version update
uses: test-room-7/action-update-file@v1
with:
file-path: pyopenms_viz/__init__.py
commit-msg: Bump patch version
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Install GitHub CLI
run: |
type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
- name: Authenticate GitHub CLI
run: echo "${{ secrets.PERSONAL_ACCESS_TOKEN }}" | gh auth login --with-token
- name: Create new patch release
run: python .github/workflows/scripts/release.py
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}