name: Release
on:
  push:
    tags:
     - v*

jobs:
  update:
    name: Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Set correct versions
        run: sed "s/edge/${{ github.ref_name }}" -i docker-compose.yml

      - uses: actions/upload-artifact@v4
        with:
          name: docker-compose.yml
          path: ./docker-compose.yml

      - name: Upload release artifacts
        uses: softprops/action-gh-release@v2
        with:
          files: ./docker-compose.yml
