Skip to content

Remove smoke test temporarily #22

Remove smoke test temporarily

Remove smoke test temporarily #22

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
build-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Train model
run: python src/train.py
- name: Build docker image
run: docker build -t ghcr.io/${{ github.repository }}:${{ github.ref_name }} .
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push image
run: docker push ghcr.io/${{ github.repository }}:${{ github.ref_name }}
- name: Publih release
uses: softprops/action-gh-release@v2
with:
body: |
## Metrics
```
$(cat model/metrics.json)
```
## Changelog
$(cat CHANGELOG.md)