diff --git a/.github/release-docker.yml b/.github/release-docker.yml new file mode 100644 index 0000000..cba48d9 --- /dev/null +++ b/.github/release-docker.yml @@ -0,0 +1,33 @@ +name: Release + +on: + push: + branches: + - "main" + workflow_dispatch: + +env: + HUSKY: 0 + CI: true + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ github.token }} + + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v4 + with: + extra_plugins: | + @codedependant/semantic-release-docker + env: + GITHUB_TOKEN: ${{ github.token }} diff --git a/README.md b/README.md index 94f6041..34e9b57 100644 --- a/README.md +++ b/README.md @@ -1 +1,16 @@ # apy-server +for fetching the apy of different asset on diferrent protocols. For protocols Like for curve, lido, sky, pendle, defillama etc. + +### Running locally +``` +yarn +npx ts-node main.ts +``` + + +### Running via github actions on fly.io +- https://fly.io/docs/launch/continuous-deployment-with-github-actions/ + +### Deploying changes via github actions +- Create a PR to the main branch. +- On merger the changes will be applied to apy-server.fly.dev