Skip to content

Ivan/dev mbt basics #68

Ivan/dev mbt basics

Ivan/dev mbt basics #68

Workflow file for this run

name: Release
on:
pull_request:
branches: [dev]
types: [closed]
jobs:
github-release:
environment: Release
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.title, '[RELEASE] ') &&
github.event.pull_request.merged == true
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Configure Git
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "github@actions.ci"
- name: Install `quickinstall`
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-quickinstall
- name: Install `unclog`
uses: actions-rs/cargo@v1
with:
command: quickinstall
args: unclog
- name: Parse release version
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
echo "RELEASE_VERSION=`sed 's/^\[RELEASE\] v//g' <<< "${TITLE}"`" >> $GITHUB_ENV
- name: Tag and make a Github release
run: ./scripts/github_release.sh
- name: Setup Python
uses: actions/setup-python@v1
- name: Setup Poetry
uses: Gr1N/setup-poetry@v7
- name: Poetry publish
run: |
# poetry publish --build
echo "Skipping Python package"