Skip to content

Commit

Permalink
Merge pull request #5 from JerryKhw/main
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsougata committed Apr 8, 2023
2 parents 717d7cc + a8c03c9 commit 76f8ab5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Deta Space Deployment Github Action
uses: neobrains/space-deployment-github-action@v0.3
uses: neobrains/space-deployment-github-action@v0.5
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
project_id: ${{ secrets.PROJECT_ID }}
Expand Down
8 changes: 5 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,17 @@ runs:
shell: script -q -e -c "bash {0}"
run: |
cd ${{ inputs.project_directory }}
space push --id "${{ inputs.project_id }}"
space link --id "${{ inputs.project_id }}"
space push
- name: Create a release on Deta Space
if: ${{ inputs.space_release == 'true' }}
shell: script -q -e -c "bash {0}"
run: |
cd ${{ inputs.project_directory }}
space link --id "${{ inputs.project_id }}"
if [[ ${{ inputs.list_on_discovery }} == true ]]; then
space release --id "${{ inputs.project_id }}" --version "${{ inputs.release_version }}" --listed --confirm
space release --version "${{ inputs.release_version }}" --listed --confirm
else
space release --id "${{ inputs.project_id }}" --version "${{ inputs.release_version }}" --confirm
space release --version "${{ inputs.release_version }}" --confirm
fi

0 comments on commit 76f8ab5

Please sign in to comment.