v1.0.6 #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
release: | |
types: | |
- created | |
env: | |
PYTHONUNBUFFERED: "1" | |
FORCE_COLOR: "1" | |
jobs: | |
package-goe: | |
name: Package GOE artefacts required for installation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Fetch all tags | |
fetch-depth: 0 | |
- name: Set up JDK & SBT | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install base libraries | |
run: pip install --quiet --upgrade pip build setuptools wheel | |
- name: Building GOE package | |
run: make package | |
- name: Move package to `dist/` | |
run: mv goe_*.tar.gz dist/goe.tar.gz | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts | |
path: dist/goe.tar.gz | |
if-no-files-found: error | |
publish: | |
name: Publish release | |
needs: | |
- package-goe | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: artifacts | |
path: dist | |
- name: Add package to current release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: dist/goe.tar.gz | |
pypi-publish: | |
name: Publish release to PyPI | |
runs-on: ubuntu-latest | |
environment: pypi | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
pip install --quiet --upgrade pip build setuptools wheel | |
- name: Build package | |
run: | | |
python -m build | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |