Skip to content

Add GitHub Actions workflow for releasing cipherstash-eql.sql #30

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

Merged
merged 7 commits into from
Oct 22, 2024
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
5 changes: 5 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
changelog:
categories:
- title: Changes since the last release
labels:
- "*"
45 changes: 45 additions & 0 deletions .github/workflows/release-eql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Release EQL"

on:
release:
types:
- published
pull_request: # runs everything but the last step
branches:
- main
paths:
- .github/workflows/release-eql.yml
# Useful for debugging
workflow_dispatch:

defaults:
run:
shell: bash -l {0}

permissions:
contents: write

jobs:
build-and-publish:
runs-on: ubuntu-latest
name: Build EQL
if: ${{ github.event_name != 'release' || contains(github.event.release.tag_name, 'eql') }}
timeout-minutes: 5

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install asdf & tools
uses: asdf-vm/actions/install@v3

- name: Build EQL release
run: |
just build
mv release/cipherstash-encrypt-dsl.sql release/cipherstash-eql.sql

- name: Publish EQL release artifacts
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: release/cipherstash-eql.sql
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,6 @@ cipherstash-proxy.toml

# turbo repo
.turbo

# build artifacts
release/
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
just 1.36.0
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ EQL provides a data format for transmitting and storing encrypted data & indexes
- [Managing indexes with EQL](#managing-indexes-with-eql)
- [Data Format](#data-format)
- [Helper packages](#helper-packages)
- [Releasing](#releasing)

---

Expand Down Expand Up @@ -609,3 +610,15 @@ We have created a few langague specific packages to help you interact with the p

- [@cipherstash/eql](https://github.com/cipherstash/encrypt-query-language/tree/main/languages/javascript/packages/eql): This is a TypeScript implementation of EQL.
- [github.com/encrypt-query-language/go/goeql](https://github.com/cipherstash/encrypt-query-language/tree/main/languages/go/goeql): This is a Go implementation of EQL.

## Releasing

To cut a [release](https://github.com/cipherstash/encrypt-query-language/releases) of EQL:

1. Draft a [new release](https://github.com/cipherstash/encrypt-query-language/releases/new) on GitHub
1. Choose a tag, and create a new one with the prefix `eql-` followed by a [semver](https://semver.org/) (for example, `eql-1.2.3`)
1. Generate the release notes
1. Optionally set the release to be the latest (you can set a release to be latest later on if you are testing out a release first)
1. Click the `Publish release` button

This will trigger a run of the [Release EQL](https://github.com/cipherstash/encrypt-query-language/actions/workflows/release-eql.yml) workflow, which will build and attach artifacts to the release.