stackchain-dashboard/.gitea/workflows/release.yml
timmy 9558e9ad64
Some checks are pending
CI / lint (push) Waiting to run
CI / build-frontend (push) Blocked by required conditions
Release / tag-release (push) Waiting to run
Release / draft-rc (push) Blocked by required conditions
ci: add automated CI/release workflows
2026-07-08 14:24:16 +00:00

36 lines
884 B
YAML

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