Skip to content

fix: use make build_python to build package (#11) #6

fix: use make build_python to build package (#11)

fix: use make build_python to build package (#11) #6

Workflow file for this run

name: Release
on:
push:
tags:
- v*.*.*
jobs:
publish_binary:
name: GitHub
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: Set PreRelease Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
args: -p 3 release --clean
version: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: true
matrix:
goversion:
- 1.22.x
publish_pypi:
name: PyPI
runs-on: ubuntu-latest
needs: publish_binary
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install dependencies
run: pip install build
- name: Build Python packages
run: make build_python
- name: Publish package
uses: pypa/[email protected]
with:
packages-dir: sdk/python/bin/dist
password: ${{ secrets.PYPI_API_TOKEN }}