name: Release on: push: branches: ["main"] jobs: tag-and-notes: runs-on: docker steps: - name: Checkout uses: actions/checkout@v4 - name: Build CI image run: docker build -f ci.Dockerfile -t local/ci:latest . - name: Compute tag id: tag run: | TZ=UTC date +"v%Y.%m.%d-%H%M" > tag.txt echo "tag=$(cat tag.txt)" >> $GITHUB_OUTPUT - name: Create annotated tag run: | git config user.name "ci" git config user.email "ci@local" git tag -a ${{ steps.tag.outputs.tag }} -m "Release ${{ steps.tag.outputs.tag }}" git push origin ${{ steps.tag.outputs.tag }}