Skip to content

Commit 23631a1

Browse files
committed
Add a workflow for cutting an EQL release
1 parent 369622d commit 23631a1

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/release-eql.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "Release EQL"
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
pull_request:
8+
branches:
9+
- main
10+
paths:
11+
- .github/workflows/release-eql.yml
12+
# Useful for debugging
13+
workflow_dispatch:
14+
15+
defaults:
16+
run:
17+
shell: bash -l {0}
18+
19+
permissions:
20+
contents: write
21+
22+
jobs:
23+
build-and-publish:
24+
runs-on: ubuntu-latest
25+
name: Build EQL
26+
if: ${{ github.event_name != 'release' || contains(github.event.release.tag_name, 'eql') }}
27+
timeout-minutes: 5
28+
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v4
32+
33+
- name: Install asdf & tools
34+
uses: asdf-vm/actions/install@v3
35+
36+
- name: Build EQL release
37+
run: |
38+
just build
39+
mv release/cipherstash-encrypt-dsl.sql release/cipherstash-eql.sql
40+
41+
- name: Release
42+
uses: softprops/action-gh-release@v2
43+
if: startsWith(github.ref, 'refs/tags/')
44+
with:
45+
files: release/cipherstash-eql.sql

0 commit comments

Comments
 (0)