Skip to content

Commit

Permalink
Uncomment the parts that were commented out for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
cmillar-trunk committed Dec 17, 2024
1 parent 9fb2fc5 commit 4b26c6e
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,50 +131,50 @@ jobs:
--token ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }} \
cargo nextest run -p smoke-test --profile ci
# tag_and_release:
# name: Tag and Release [ ${{ github.event.inputs.release_tag }} ]
# runs-on: public-amd64-small
# needs: [build_linux, build_macos, perform_smoke_test]
# if: needs.perform_smoke_test.result == 'success'
#
# steps:
# - uses: actions/checkout@v4
#
# - id: download
# uses: actions/download-artifact@v4
# with:
# path: build
#
# - name: Compress binaries
# run: |
# for target in $(ls build)
# do
# chmod u+x build/${target}/trunk-analytics-cli
# tar czvf \
# build/trunk-analytics-cli-${target}.tar.gz \
# -C build/${target} trunk-analytics-cli
# done
#
# - name: Install gh
# uses: trunk-io/trunk-action/install@v1
# with:
# tools: gh
#
# - name: Create GH release and upload binary
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# gh release create --prerelease --latest=false \
# --target ${{ github.ref }} \
# --generate-notes ${{ github.event.inputs.release_tag }} \
# ./build/*.tar.gz
#
# - name: Create Sentry release
# uses: getsentry/action-release@v1
# env:
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
# SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
# with:
# environment: production
# version: ${{ github.event.inputs.release_tag }}
tag_and_release:
name: Tag and Release [ ${{ github.event.inputs.release_tag }} ]
runs-on: public-amd64-small
needs: [build_linux, build_macos, perform_smoke_test]
if: needs.perform_smoke_test.result == 'success'

steps:
- uses: actions/checkout@v4

- id: download
uses: actions/download-artifact@v4
with:
path: build

- name: Compress binaries
run: |
for target in $(ls build)
do
chmod u+x build/${target}/trunk-analytics-cli
tar czvf \
build/trunk-analytics-cli-${target}.tar.gz \
-C build/${target} trunk-analytics-cli
done
- name: Install gh
uses: trunk-io/trunk-action/install@v1
with:
tools: gh

- name: Create GH release and upload binary
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create --prerelease --latest=false \
--target ${{ github.ref }} \
--generate-notes ${{ github.event.inputs.release_tag }} \
./build/*.tar.gz
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
version: ${{ github.event.inputs.release_tag }}

0 comments on commit 4b26c6e

Please sign in to comment.