Files
Simona 6fd7e4d545 Update workflows with agent marketplace generation files (#124)
* Update workflows with agent marketplace generation files

* Fix failing zizmor errors

* Modify update-skills steps to update agent marketplace files and skill lists with every new update

* Modify update-skills steps to update agent marketplace files and skill lists with every new update

* Resolve comments
2026-08-04 16:51:25 +02:00

68 lines
2.0 KiB
YAML

name: Create Release
on:
workflow_dispatch:
inputs:
tag_name:
description: 'Tag name for the release (e.g., v1.0.0)'
required: true
type: string
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: main
token: ${{ secrets.ADR_GITHUB_BOT_PAT || secrets.GITHUB_TOKEN }}
- name: Update Codex Plugin Version
env:
TAG_NAME: ${{ inputs.tag_name }}
run: |
VERSION="${TAG_NAME#v}"
echo "Updating .codex-plugin/plugin.json version to $VERSION"
VERSION="$VERSION" python3 -c "
import json
import os
version = os.environ['VERSION']
path = '.codex-plugin/plugin.json'
with open(path, 'r') as f:
data = json.load(f)
data['version'] = version
with open(path, 'w') as f:
json.dump(data, f, indent=2)
f.write('\n')
"
- name: Commit and push updated version
env:
TAG_NAME: ${{ inputs.tag_name }}
run: |
git config user.name "android-devrel-github-bot"
git config user.email "android-devrel-github-bot@users.noreply.github.com"
git add .codex-plugin/plugin.json
git commit -m "Bump plugin version to $TAG_NAME" || echo "No version change to commit"
git push origin main
- name: Create Zip Archive
run: |
git archive --format=zip --output=android-skills.zip HEAD
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.ADR_GITHUB_BOT_PAT || secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ inputs.tag_name }}
run: |
gh release create "$TAG_NAME" android-skills.zip \
--target main \
--title "Release $TAG_NAME" \
--notes "Release $TAG_NAME of Android Skills."