Skip to content

feat: one-command Docker Compose quickstart #10

feat: one-command Docker Compose quickstart

feat: one-command Docker Compose quickstart #10

Workflow file for this run

name: Release
on:
pull_request:
branches: [main]
types: [closed]
jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
concurrency: release
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Generate timestamp tag
id: version
run: |
BASE="v$(date -u +%Y.%m.%d)"
TAG="$BASE"
N=1
while git ls-remote --tags origin "$TAG" | grep -q "$TAG"; do
TAG="${BASE}.${N}"
N=$((N + 1))
done
echo "tag=$TAG" >> $GITHUB_OUTPUT
- name: Create tag and GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="${{ steps.version.outputs.tag }}"
git tag "$TAG"
git push origin "$TAG"
gh release create "$TAG" --title "$TAG" --generate-notes