Skip to content

Commit d7210cf

Browse files
committed
Add GitHub Actions workflow for automating SQLancer 2.0.0-yb releases
1 parent d26aedb commit d7210cf

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/yb_release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release SQLancer 2.0.0-yb
2+
3+
on:
4+
push:
5+
branches:
6+
- master-yb
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-java@v4
16+
with:
17+
distribution: 'temurin'
18+
java-version: '21'
19+
check-latest: true
20+
21+
- name: Build with Maven
22+
run: mvn package -DskipTests --file pom.xml
23+
24+
- name: Package release artifact
25+
run: |
26+
cd target
27+
mv -n sqlancer-2.0.0.jar sqlancer-2.0.0-yb.jar
28+
tar -czf sqlancer.tar.gz sqlancer-2.0.0-yb.jar lib/
29+
30+
- name: Delete existing release and tag
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: |
34+
gh release delete sqlancer_2.0.0-yb --yes --cleanup-tag || true
35+
36+
- name: Create release
37+
env:
38+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
run: |
40+
gh release create sqlancer_2.0.0-yb \
41+
target/sqlancer.tar.gz#sqlancer-2.0.0-yb.tar.gz \
42+
--title "SQLancer 2.0.0-yb" \
43+
--notes "Auto-built from master-yb branch (commit ${{ github.sha }})" \
44+
--latest=false

0 commit comments

Comments
 (0)