Skip to content

fix: automatic api update (#42) #69

fix: automatic api update (#42)

fix: automatic api update (#42) #69

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files-specific
uses: tj-actions/changed-files@v34
with:
files: |
docs/**
src/**
- uses: actions/setup-python@v4
if: steps.changed-files-specific.outputs.any_changed == 'true'
with:
python-version: '3.10'
- name: Install dependencies
if: steps.changed-files-specific.outputs.any_changed == 'true'
uses: py-actions/py-dependency-install@v4
- name: Bump version
if: steps.changed-files-specific.outputs.any_changed == 'true'
run: bumpver update --patch
- name: Build
if: steps.changed-files-specific.outputs.any_changed == 'true'
run: bash scripts/build.sh
- name: Release
if: steps.changed-files-specific.outputs.any_changed == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
- name: Commit changes
if: steps.changed-files-specific.outputs.any_changed == 'true'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'build: new release [skip ci]'
commit_user_name: 'Moralis CI/CD <[email protected]>'
- name: Notify Slack
id: slack
if: steps.changed-files-specific.outputs.any_changed == 'true'
uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_RELEASE_URL }}