Skip to content
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
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
service_account: ${{ vars.DEPLOYER_SA_EMAIL }}
- uses: google-github-actions/setup-gcloud@v2

# goreleaser's `sboms` block shells out to syft; install it so the SBOM step succeeds.
- name: install syft (SBOM)
uses: anchore/sbom-action/download-syft@v0

# google-github-actions/auth writes gha-creds-*.json into the workspace; exclude it so
# goreleaser's clean-tree check does not fail with "git is in a dirty state".
- name: keep the tree clean for goreleaser
Expand All @@ -61,7 +65,7 @@ jobs:
- name: publish binaries -> Artifact Registry (generic)
run: |
set -euo pipefail
VER="${GITHUB_REF_NAME}"
VER="${GITHUB_REF_NAME#v}" # strip the leading v; goreleaser archives are named without it
for f in dist/interlock_*.tar.gz dist/interlock_*.zip dist/checksums.txt; do
[ -e "$f" ] || continue
gcloud artifacts generic upload \
Expand All @@ -73,7 +77,7 @@ jobs:
- name: update latest channel manifest
run: |
set -euo pipefail
printf '{"version":"%s"}\n' "${GITHUB_REF_NAME}" > latest.json
printf '{"version":"%s"}\n' "${GITHUB_REF_NAME#v}" > latest.json
gcloud artifacts generic upload \
--project="${{ vars.AR_PROJECT }}" --location="${{ vars.AR_LOCATION }}" \
--repository="${{ vars.AR_GENERIC_REPO }}" \
Expand All @@ -83,6 +87,7 @@ jobs:
working-directory: clients/typescript
run: |
set -euo pipefail
npm version "${GITHUB_REF_NAME#v}" --no-git-tag-version --allow-same-version
gcloud artifacts print-settings npm \
--project="${{ vars.AR_PROJECT }}" --location="${{ vars.AR_LOCATION }}" \
--repository="${{ vars.AR_NPM_REPO }}" --scope=@operatorstack > .npmrc
Expand All @@ -93,6 +98,7 @@ jobs:
working-directory: clients/python
run: |
set -euo pipefail
sed -i "s/^version = .*/version = \"${GITHUB_REF_NAME#v}\"/" pyproject.toml
pip install --quiet build twine keyrings.google-artifactregistry-auth
python -m build
twine upload \
Expand Down
Loading