-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 923 Bytes
/
publish.yml
File metadata and controls
37 lines (32 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Publish to Marketplace
on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: 'Version tag (e.g., v1.0.0)'
required: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate action.yml
run: |
# Basic validation
if ! grep -q "name:" action.yml; then
echo "❌ action.yml missing name"
exit 1
fi
if ! grep -q "runs:" action.yml; then
echo "❌ action.yml missing runs section"
exit 1
fi
echo "✅ action.yml is valid"
- name: Create Release
if: github.event_name == 'release'
run: |
echo "Release published: ${{ github.event.release.tag_name }}"
echo "Release notes: ${{ github.event.release.body }}"