Skip to content

Commit acd47d3

Browse files
committed
Updated prod and staging github publisher workflows
1 parent e498921 commit acd47d3

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

Diff for: .github/workflows/main.yml renamed to .github/workflows/publisher_prod.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: Use Tecture Publisher
1+
name: Publish to Tecture (Production)
22

33
on:
44
pull_request:
55
types: [closed]
6+
branches:
7+
- main
68

79
jobs:
810
publish:
@@ -15,5 +17,5 @@ jobs:
1517
uses: tecture-io/component-library-publisher-action@main
1618
with:
1719
github_token: ${{ secrets.GITHUB_TOKEN }}
18-
server_url: ${{ secrets.SERVER_URL }}
19-
api_key: ${{ secrets.API_KEY }}
20+
server_url: ${{ secrets.SERVER_URL_PROD }}
21+
api_key: ${{ secrets.API_KEY_PROD }}

Diff for: .github/workflows/publisher_staging.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to Tecture (Staging)
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
branches:
7+
- staging
8+
9+
jobs:
10+
publish:
11+
if: github.event.pull_request.merged == true
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Tecture Component Library Publisher
17+
uses: tecture-io/component-library-publisher-action@main
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
server_url: ${{ secrets.SERVER_URL_STAGING }}
21+
api_key: ${{ secrets.API_KEY_STAGING }}

0 commit comments

Comments
 (0)