Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Add publish workflows (#1046)
Browse files Browse the repository at this point in the history
* Add staging publish workflow

* Add manual trigger

* Better config?

* Add push trigger if I must

* Quotes matter

* Also log the output

* Add production publish, remove push trigger
  • Loading branch information
charypar authored Sep 2, 2022
1 parent 80b5046 commit 91ebab7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/publish-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: publish-production
on:
workflow_dispatch: {}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: call-publish-API
uses: indiesdev/[email protected]
with:
url: ${{ secrets.PUBLISH_PRODUCTION_URL }}
method: POST
headers: '{ "Accept": "application/json", "Content-Type": "application/json" }'
timeout: 15000 # 15 seconds
log-response: true
15 changes: 15 additions & 0 deletions .github/workflows/publish-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: publish-staging
on:
workflow_dispatch: {}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: call-publish-API
uses: indiesdev/[email protected]
with:
url: ${{ secrets.PUBLISH_STAGING_URL }}
method: POST
headers: '{ "Accept": "application/json", "Content-Type": "application/json" }'
timeout: 15000 # 15 seconds
log-response: true

0 comments on commit 91ebab7

Please sign in to comment.