Skip to content

chore: add custom animation transition #2073

chore: add custom animation transition

chore: add custom animation transition #2073

Workflow file for this run

name: Release
on:
push:
branches-ignore:
- data
- gh-pages
tags:
- '**'
pull_request:
branches-ignore:
- data
- gh-pages
workflow_dispatch:
inputs:
version:
description: New version in format n.n.n (1.111.11)
required: true
next_version:
description: Next development version in format n.n.n.devn (1.111.11.dev0). USE ONLY FOR MAJOR DEVELOPMENT VERSIONS (2.0.0.dev0). DON'T WRITE ANYTHING HERE
required: false
jobs:
# Release job. Runs make_release.py tool. Pushes changes only on dispatch_event
release:
name: Release
runs-on: ubuntu-latest
env:
PYTHONUNBUFFERED: 1
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: ${{ github.event_name != 'workflow_dispatch' }} # Allow using PAT when making release
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
architecture: x64
- name: Set up environment
run: |
git config user.name "KivyMD Bot"
git config user.email [email protected]
pip install -e .
pip install pre-commit
- name: Release
if: github.event_name == 'workflow_dispatch'
run: |
# Use personal token to push (when using GITHUB_TOKEN, it will not run workflows)
git remote set-url origin https://KivyMD-Bot:${{ secrets.GH_PAT }}@github.com/${{ github.repository }}
python kivymd/tools/release/make_release.py release "${{ github.event.inputs.version }}" "${{ github.event.inputs.next_version }}" --yes --push
- name: Release preparation
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.event_name != 'workflow_dispatch'
run: |
# Use personal token to push
git remote set-url origin https://KivyMD-Bot:${{ secrets.GH_PAT }}@github.com/${{ github.repository }}
python kivymd/tools/release/make_release.py prepare --yes --push
git format-patch origin/master... --stdout
- name: Release test
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master' && github.event_name != 'workflow_dispatch')
run: |
python kivymd/tools/release/make_release.py test --yes
git format-patch origin/master... --stdout
git format-patch origin/master... --stdout > release_test.patch