2024-01-30 14:28:34 +01:00
|
|
|
name: release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
|
|
|
- "[0-9]+.[0-9]+.[0-9]+"
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
2024-04-17 10:53:57 +02:00
|
|
|
|
2024-01-30 14:28:34 +01:00
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-26 14:18:58 +01:00
|
|
|
- uses: actions/checkout@v4
|
2024-01-30 14:28:34 +01:00
|
|
|
- name: Create github release
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
tag: ${{ github.ref_name }}
|
|
|
|
run: |
|
2024-02-05 12:01:11 +01:00
|
|
|
gh release create "$tag" --generate-notes --draft
|
2024-01-30 14:28:34 +01:00
|
|
|
|
|
|
|
docker:
|
|
|
|
needs: [ release ]
|
|
|
|
uses: ./.github/workflows/docker.yml
|
|
|
|
with:
|
|
|
|
tag: ${{ github.ref_name }}
|
2024-03-26 20:26:31 +01:00
|
|
|
secrets:
|
|
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
2024-04-17 10:53:57 +02:00
|
|
|
|
2024-05-22 12:47:41 +02:00
|
|
|
docker-latest:
|
|
|
|
needs: [ release ]
|
|
|
|
uses: ./.github/workflows/docker.yml
|
|
|
|
with:
|
|
|
|
tag: latest
|
|
|
|
secrets:
|
|
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
|
2024-04-17 10:53:57 +02:00
|
|
|
pypi:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-09 15:51:40 +02:00
|
|
|
- name: Install dependencies for building secp256k1
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y build-essential automake libtool libffi-dev libgmp-dev
|
2024-04-17 10:53:57 +02:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build and publish to pypi
|
|
|
|
uses: JRubics/poetry-publish@v1.15
|
|
|
|
with:
|
|
|
|
pypi_token: ${{ secrets.PYPI_API_KEY }}
|