Skip to content

1.0.17

1.0.17 #7

Workflow file for this run

name: Github Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Debug who is authenticated and tagger
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_CUSTOM: ${{ secrets.RELEASE_TOKEN }}
TAG: ${{ github.ref_name }}
run: |
echo "=== Authenticated (GITHUB_TOKEN) ==="
if [ -n "$GH_TOKEN" ]; then
curl -s -H "Authorization: Bearer $GH_TOKEN" https://api.github.com/user | jq '{login,id}'
else
echo "GITHUB_TOKEN not set"
fi
echo "=== Authenticated (RELEASE_TOKEN) ==="
if [ -n "$GH_CUSTOM" ]; then
curl -s -H "Authorization: Bearer $GH_CUSTOM" https://api.github.com/user | jq '{login,id}'
else
echo "RELEASE_TOKEN not set"
fi
echo "=== Tagger for tag: $TAG ==="
git fetch --tags --force
if git rev-parse "refs/tags/$TAG" >/dev/null 2>&1; then
git for-each-ref --format='%(refname:short) %(taggername) %(taggeremail)' "refs/tags/$TAG" || true
else
echo "Tag refs/tags/$TAG not found"
fi
- name: Release
uses: softprops/action-gh-release@v2