Ivan/dev mbt basics #68
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: 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" |