Skip to content

Commit fb63734

Browse files
authored
publish extension on release created action
1 parent a546d4e commit fb63734

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish extension to phcode.dev extension store
2+
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
3+
on:
4+
release:
5+
types:
6+
- edited
7+
- published
8+
9+
jobs:
10+
build-tasks:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Dump GitHub context
14+
id: github_context_step
15+
run: echo '${{ toJSON(github) }}'
16+
- name: release details
17+
run: |
18+
echo "$GITHUB_REF repo=${{github.event.repository.full_name}}"
19+
curl --fail-with-body https://publish.phcode.dev/publishGithubRelease?releaseRef=${{github.event.repository.full_name}}:$GITHUB_REF

0 commit comments

Comments
 (0)