From 1dfb1c008d9c74f8aaf490124d02e38ac189f547 Mon Sep 17 00:00:00 2001 From: phoenixide Date: Sat, 18 Mar 2023 10:14:00 +0530 Subject: [PATCH] publish to phcode.dev/Brackets extension repoitory on GitHub release Update --- .github/workflows/publishToPhcode.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/publishToPhcode.yml diff --git a/.github/workflows/publishToPhcode.yml b/.github/workflows/publishToPhcode.yml new file mode 100644 index 0000000..02e6c46 --- /dev/null +++ b/.github/workflows/publishToPhcode.yml @@ -0,0 +1,16 @@ +name: Publish extension to Brackets/phcode.dev extension store +# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release +on: + release: + types: + - edited + - published + +jobs: + build-tasks: + runs-on: ubuntu-latest + steps: + - name: release to extension store + run: | + echo "$GITHUB_REF repo=${{github.event.repository.full_name}}" + curl --fail-with-body https://publish.phcode.dev/publishGithubRelease?releaseRef=${{github.event.repository.full_name}}:$GITHUB_REF