stackchain-hackathon/.gitea/workflows/release.yml
timmy 1c87371574
Some checks are pending
CI / lint (push) Waiting to run
CI / pages-check (push) Blocked by required conditions
Release Candidate / tag (push) Waiting to run
Release Candidate / draft (push) Blocked by required conditions
ci: add CI and release workflows for hackathon repo
2026-07-08 14:45:42 +00:00

36 lines
860 B
YAML

name: Release Candidate
on:
push:
branches: [main]
workflow_dispatch:
jobs:
tag:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Auto-tag RC
run: |
set -e
TAG="rc-${{ github.run_number }}"
git tag "$TAG" || true
git push origin "$TAG" || true
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
draft:
runs-on: ubuntu-latest
needs: tag
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Draft release
run: |
set -e
TAG="${{ needs.tag.outputs.tag }}"
gh release create "$TAG" --draft --title "RC $TAG" --notes "Automated release candidate." || true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}