This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
Simplify protocol fee calculations and remove consistency rewards (mi… #147
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: deploy | |
on: | |
push: | |
branches: [main] | |
tags: [v*] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- id: meta | |
uses: docker/metadata-action@v3 | |
with: | |
images: ghcr.io/${{ github.repository }} | |
- uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: Dockerfile | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12' | |
- run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/prefect.txt | |
- env: | |
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }} | |
run: | | |
prefect config set PREFECT_API_URL=$PREFECT_API_URL | |
- run: python src/deploy_prefect/deployment.py |