Skip to content

Add release action

Add release action #3

Workflow file for this run

name: Tests the build of the extension
on:
# Triggers the workflow on push or pull request events but only for the master branch
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set environnment package version from tag
run: echo "PACKAGE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV # extract "1.2.3" from refs/tags/v1.2.3
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install dependencies
run: pip install build twine
- name: Build wheel
run: python -m build