Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release workflow #43

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 28 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,38 +34,38 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Bump version
id: version
uses: mapped/action-vtl@latest
with:
baseVersion: 0.0.1
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# No need to create VERSION file
versionFile: ""
- 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=${{ steps.version.outputs.release_tag }}" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
args: -p 3 release --rm-dist
version: latest
- name: Checkout Repo
uses: actions/checkout@v2
- name: Bump version
id: version
uses: mapped/action-vtl@latest
with:
baseVersion: 0.0.1
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# No need to create VERSION file
versionFile: ""
- 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=${{ steps.version.outputs.release_tag }}" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
args: -p 3 release --clean
version: latest
strategy:
fail-fast: true
matrix:
goversion:
- 1.21.x
- 1.21.x
publish_sdk:
name: Publish SDKs
runs-on: ubuntu-latest
Expand Down Expand Up @@ -145,4 +145,3 @@ jobs:
- 20.x
pythonversion:
- "3.9"

Loading