Skip to content

Commit

Permalink
Merge pull request #1 from useparagon/dev
Browse files Browse the repository at this point in the history
Release v1
  • Loading branch information
ethanlee16 authored Mar 25, 2024
2 parents f67711a + e97149f commit a837be7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ jobs:
uses: useparagon/paragraph-push@v1
with:
paragonKey: ${{ secrets.PARAGON_CLI_KEY }}
npmToken: ${{ secrets.NPM_TOKEN }}
paragonZeusUrl: ${{ secrets.ZEUS_URL }}
paragonDashboardUrl: ${{ secrets.DASHBOARD_URL }}
```
Make sure to replace ${{ secrets.PARAGON_CLI_KEY }}, ${{ secrets.NPM_TOKEN }}, ${{ secrets.ZEUS_URL }}, and ${{ secrets.DASHBOARD_URL }} with your actual secrets. Also, ensure to use the correct version of the action.
Make sure to replace ${{ secrets.PARAGON_CLI_KEY }}, ${{ secrets.ZEUS_URL }}, and ${{ secrets.DASHBOARD_URL }} with your actual secrets. Also, ensure to use the correct version of the action.
## Inputs
- paragonKey
Expand Down
24 changes: 10 additions & 14 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: 'Paragraph Push Runner'
description: 'Pushes updated code from github branch and sync with paragon project'
description: 'Pushes updated code from GitHub to sync with Paragon.'
branding:
icon: upload-cloud
color: gray-dark
inputs:
paragonKey:
type: string
required: true
npmToken:
type: string
required: true
paragonZeusUrl:
type: string
required: true
required: false
default: https://zeus.useparagon.com
paragonDashboardUrl:
type: string
required: true
required: false
default: https://dashboard.useparagon.com

runs:
using: 'composite'
Expand Down Expand Up @@ -56,12 +58,7 @@ runs:
if [ -z "${{ inputs.paragonKey }}" ]; then
echo "paragonKey is not provided."
exit 1
fi
if [ -z "${{ inputs.npmToken }}" ]; then
echo "npmToken is not provided."
exit 1
fi
fi
if [ -z "${{ inputs.paragonZeusUrl }}" ]; then
echo "paragonZeusUrl is not provided."
Expand All @@ -81,8 +78,7 @@ runs:
- name: Install para CLI
shell: bash
run: |
echo "//registry.npmjs.org/:_authToken=${{ inputs.npmToken }}" > ~/.npmrc
npm install -g @useparagon/[email protected]
npm install -g @useparagon/cli
- name: Authenticate into CLI
env:
Expand Down

0 comments on commit a837be7

Please sign in to comment.