Skip to content

Commit

Permalink
ci: try make semantic-release work with protected branch
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed May 13, 2022
1 parent 1c430c2 commit 11876e6
Showing 1 changed file with 24 additions and 27 deletions.
51 changes: 24 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,39 @@ on:
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8]

steps:
- name: Install secp256k1
run: sudo apt-get install libsecp256k1-0 libsecp256k1-dev
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
# test:
# runs-on: ubuntu-latest
# strategy:
# max-parallel: 4
# matrix:
# python-version: [3.6, 3.7, 3.8]
#
# steps:
# - name: Install secp256k1
# run: sudo apt-get install libsecp256k1-0 libsecp256k1-dev
# - uses: actions/checkout@v1
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v1
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install tox tox-gh-actions
# - name: Test with tox
# run: tox

release:
name: Semantic Release
runs-on: ubuntu-latest
concurrency: push
needs:
- test
#needs:
# - test
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ needs.beautify.outputs.new_sha }}

- name: Fetch master
run: git fetch --prune origin +refs/heads/master:refs/remotes/origin/master
token: ${{ secrets.PAT }}

- name: Python Semantic Release
uses: relekang/python-semantic-release@master
Expand Down

0 comments on commit 11876e6

Please sign in to comment.