fix: use correct package name (#16) #11
Workflow file for this run
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: 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/action-install-gh-release@v1.12.0 | |
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 | |
- name: Install pulumictl | |
uses: jaxxstorm/action-install-gh-release@v1.12.0 | |
with: | |
repo: pulumi/pulumictl | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: pip install build setuptools | |
- name: Build Python packages | |
run: make build_python | |
- name: Publish package | |
uses: pypa/gh-action-pypi-publish@v1.10.3 | |
with: | |
packages-dir: sdk/python/bin/dist | |
password: ${{ secrets.PYPI_API_TOKEN }} |