1
hermetic_cc_toolchain/ci/release

16 lines
451 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# Copyright 2023 Uber Technologies, Inc.
# Licensed under the Apache License, Version 2.0
2022-04-18 12:35:14 +03:00
set -xeuo pipefail
cd "$(git rev-parse --show-toplevel)"
prev_ref=$(git rev-parse HEAD)
git commit --allow-empty -m "this is a test commit"
2023-03-14 10:15:43 +02:00
tools/bazel run //tools/releaser -- -tag v99.0.0
cleanup() { git tag -d v99.0.0; git reset --hard "$prev_ref"; }
2022-04-18 12:35:14 +03:00
trap cleanup EXIT
2022-04-18 12:35:14 +03:00
2023-03-14 10:15:43 +02:00
file bazel-zig-cc-v99.0.0.tar.gz | grep -q 'gzip compressed data'