Skip to content

Commit

Permalink
Merge pull request #4 from useparagon/dev
Browse files Browse the repository at this point in the history
Add support for path parameter and use local CLI version if available
  • Loading branch information
loren-paragon authored Feb 20, 2025
2 parents 0e87aa7 + c8b910f commit 6faaa30
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ inputs:
type: string
required: false
default: "https://dashboard.useparagon.com"
subfolder:
type: string
required: false
default: '.'

runs:
using: 'composite'
Expand Down Expand Up @@ -73,7 +77,7 @@ runs:
with:
node-version: v18.17.1

- name: Install para CLI
- name: Install para CLI globally
shell: bash
run: |
npm install -g @useparagon/cli
Expand Down Expand Up @@ -109,14 +113,16 @@ runs:
- name: Build Paragraph project
shell: bash
working-directory: ${{ inputs.subfolder }}
run: |
para install
para build
npx para install
npx para build
- name: Push to Paragon
shell: bash
working-directory: ${{ inputs.subfolder }}
if: github.event_name == 'push' && steps.validate.outputs.valid == 'true'
run: para push
run: npx para push

# Post steps
- name: Update success status in Paragon
Expand Down

0 comments on commit 6faaa30

Please sign in to comment.