name: Release on: push: branches: [master] jobs: release: runs-on: docker steps: - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.REPO_TOKEN }} - name: Set up environment run: make setup - name: Install git-cliff run: | GIT_CLIFF_VERSION="2.13.0" URL="https://github.com/orhun/git-cliff/releases/download/v${GIT_CLIFF_VERSION}/git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz" TMPDIR="$(mktemp -d)" curl -sL "$URL" | tar xz -C "$TMPDIR" mkdir -p "$HOME/.local/bin" mv "$TMPDIR/git-cliff-${GIT_CLIFF_VERSION}/git-cliff" "$HOME/.local/bin/git-cliff" chmod +x "$HOME/.local/bin/git-cliff" echo "$HOME/.local/bin" >> "$GITHUB_PATH" "$HOME/.local/bin/git-cliff" --version - name: Configure git run: | git config user.name "grm-ci-bot" git config user.email "grm-ci-bot@oblachno.fyi" - name: Run release env: PYTHONPATH: . run: | . .venv/bin/activate python3 scripts/ci/release.py - name: Notify on failure if: failure() env: REPO_TOKEN: ${{ secrets.REPO_TOKEN }} PYTHONPATH: . run: | . .venv/bin/activate python3 scripts/ci/notify_failure.py \ --repo "${{ github.repository }}" \ --run-id "${{ github.run_id }}" \ --workflow "release" \ --commit "${{ github.sha }}"