Skip to content

Release

Release #1

Workflow file for this run

name: Release
#on:
# release:
# types: [created]
on:
create
jobs:
build:
strategy:
matrix:
platform: [
'linux-arm',
'linux-arm64',
# 'linux-x64',
]
pair: [
'python:3.9',
]
include:
- platform: 'linux-arm'
host-os: 'ubuntu-latest'
- platform: 'linux-arm64'
host-os: 'ubuntu-latest'
# - platform: 'linux-x64'
# host-os: 'ubuntu-latest'
- pair: 'python:3.9'
language: 'python'
version: '3.9'
runs-on: ${{ matrix.host-os }}
steps:
- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
- uses: actions/checkout@v6
- name: Use Python ${{ matrix.version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.version }}
- name: Make build script executable
run: chmod +x ./build.sh
- name: Make packaging script executable
run: chmod +x ./package.sh
- name: Build adapter
run: |
./build.sh "${{ matrix.platform }}" "${{ matrix.language }}" "${{ matrix.version }}"
shell: bash
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dashboard-*
tag: ${{ github.ref }}
overwrite: true
file_glob: true