Skip to content
Open
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
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Github Release for ZIP templates

on:
push:
branches:
- main

jobs:
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest
strategy:
matrix:
language: [java, python]
type: [rest, websockets]
sub-type: [rest-okhttp, rest-retrofit]
steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3

# Step 2: Create a ZIP archive of the files
- name: Create ZIP archive
run: |
mkdir -p artifacts
if [ ${{ matrix.language }} == "java" ]; then
cd client-samples/${{ matrix.language }}/${{ matrix.type }}/${{ matrix.sub-type }}
zip -r ../../../../artifacts/${{ matrix.language }}-${{ matrix.sub-type }}.zip .
else
cd client-samples/${{ matrix.language }}/${{ matrix.type }}
zip -r ../../../artifacts/${{ matrix.language }}-${{ matrix.type }}.zip .
fi

# Step 3: Upload binaries to release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/${{ matrix.language }}-${{ matrix.type }}.zip
tag: Templates
overwrite: true
file_glob: true