update version #2
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: Build and Push Custom Component | |
on: | |
push: | |
tags: | |
- '*.*.*' | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
pip install hatch | |
- name: Set version | |
run: | | |
VERSION=${GITHUB_REF#refs/tags/} | |
hatch version $VERSION | |
- name: Build and push | |
env: | |
API_KEY: ${{ secrets.DEEPSET_CLOUD_API_KEY }} # Make sure to add this secret to your repository | |
run: hatch run dc:build-and-push |