Skip to content
Merged
Show file tree
Hide file tree
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
31 changes: 31 additions & 0 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,36 @@ jobs:
echo "Tag ${TAG} does not exist, will create release."
fi

- name: Create release archive
if: steps.check_tag.outputs.exists == 'false'
run: |
set -euo pipefail
VERSION="${{ steps.version.outputs.version }}"
ARCHIVE="dist/khttpd-${VERSION}.tar.gz"

mkdir -p dist
git archive \
--format=tar \
--prefix="khttpd-${VERSION}/" \
HEAD \
BUILD.bazel \
LICENSE \
MODULE.bazel \
README.md \
doc \
framework \
| gzip -n -9 > "${ARCHIVE}"

tar -tzf "${ARCHIVE}"

- name: Upload release archive artifact
if: steps.check_tag.outputs.exists == 'false'
uses: actions/upload-artifact@v4
with:
name: khttpd-${{ steps.version.outputs.version }}-source
path: dist/khttpd-${{ steps.version.outputs.version }}.tar.gz
if-no-files-found: error

- name: Create tag
if: steps.check_tag.outputs.exists == 'false'
run: |
Expand All @@ -157,6 +187,7 @@ jobs:
name: Release v${{ steps.version.outputs.version }}
generate_release_notes: true
draft: false
files: dist/khttpd-${{ steps.version.outputs.version }}.tar.gz

publish_to_bcr:
name: Publish release to BCR
Expand Down
3 changes: 0 additions & 3 deletions patches/BUILD.bazel

This file was deleted.

This file was deleted.

Loading