diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9eec476 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +# This workflow runs the typescript implementation unit tests +name: release +on: + release: + types: [published] + workflow_dispatch: {} +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run release + env: + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + run: | + tag=$(echo $REF | cut -d'/' -f3-) + echo "Releasing version ${tag}" + docker build . \ + --target=release_test \ + --build-arg RELEASE_VERSION=${tag} \ + --build-arg PYPI_TOKEN=${PYPI_TOKEN} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7324ba0..783dea1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,5 @@ # This workflow runs the typescript implementation unit tests -name: python-tests +name: tests on: push: branches: [ main ]