Skip to content

Commit f2af8bd

Browse files
authored
Merge pull request #52 from DeskproApps/standardise-branch-build-workflow
Standardise branch build workflow
2 parents ecf7f2b + 1409929 commit f2af8bd

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

.github/workflows/branch_build.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
- name: Type check
5454
run: pnpm tsc --noemit
5555

56-
# - name: Run tests
57-
# run: pnpm test:coverage
56+
- name: Run tests
57+
run: pnpm test:coverage
5858

5959
- name: Get previous commit hash
6060
run: |
@@ -139,7 +139,7 @@ jobs:
139139
140140
- name: Create release
141141
id: create_release
142-
uses: softprops/action-gh-release@v1
142+
uses: softprops/action-gh-release@v2
143143
env:
144144
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
145145
with:
@@ -150,20 +150,8 @@ jobs:
150150
./dist/${{ steps.create_package_filename.outputs.packageFilename }}.zip
151151
./dist/manifest.json
152152
153-
- name: Register release with apps registry
154-
id: register_with_apps_registry
155-
uses: fjogeleit/http-request-action@v1
156-
with:
157-
url: "https://apps.deskpro-service.com/register"
158-
method: "POST"
159-
customHeaders: '{"Content-Type": "application/json", "x-api-key": "${{ secrets.APP_REGISTRY_KEY }}"}'
160-
data: '{"repositoryUrl": "${{ github.server_url }}/${{ github.repository }}", "type": "github"}'
161-
162-
- name: Trigger release
163-
id: trigger_release
164-
uses: fjogeleit/http-request-action@v1
165-
with:
166-
url: "https://apps.deskpro-service.com/release"
167-
method: "POST"
168-
customHeaders: '{"Content-Type": "application/json", "x-api-key": "${{ secrets.APP_REGISTRY_KEY }}"}'
169-
data: '{"repositoryUrl": "${{ github.server_url }}/${{ github.repository }}"}'
153+
release:
154+
uses: DeskproApps/app-template-vite/.github/workflows/subworkflow-release.yml@master
155+
secrets: inherit
156+
needs: [deskpro_app_test_and_build]
157+

0 commit comments

Comments
 (0)