Merge pull request #57 from mezotv/master #25
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: Python package | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
# You can use PyPy versions in python-version. | |
# For example, pypy2.7 and pypy3.9 | |
matrix: | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# You can test your matrix by printing the current Python version | |
- name: Display Python version | |
id: commit | |
continue-on-error: true | |
run: | | |
git config --global user.email "" | |
git config --global user.name "Discord API Libraries" | |
python main.py | |
git add . | |
git commit -m "Deploy $GITHUB_SHA" | |
- if: steps.commit.outcome == 'success' && steps.commit.conclusion == 'success' | |
run: git push |