Skip to content

Commit

Permalink
more geode copy paste
Browse files Browse the repository at this point in the history
  • Loading branch information
cgytrus authored Feb 13, 2024
1 parent df22a62 commit fd942f4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
15 changes: 7 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,25 +154,24 @@ runs:
if: inputs.use-cpm-cache

- name: Download CLI
uses: robinraju/release-downloader@v1.8
uses: robinraju/release-downloader@v1.9
with:
repository: geode-sdk/cli
latest: ${{ inputs.cli == 'latest' }}
tag: ${{ inputs.cli != 'latest' && inputs.cli || '' }}
fileName: "*-${{ steps.platform.outputs.id }}.zip"
tarBall: false
zipBall: false
fileName: "*-${{ steps.platform.outputs.id }}.zip"
extract: true
out-file-path: ${{ github.action_path }}

- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
shell: bash
out-file-path: "${{ github.action_path }}/cli"

- name: Setup CLI
shell: bash
run: |
7z x "cli/*-${{ matrix.config.cli_id }}.zip" -ocli
echo "${{ github.action_path }}/cli" >> $GITHUB_PATH
if [ ${{ steps.platform.outputs.id }} != "win" ]; then
chmod +x "${{ github.action_path }}/geode"
chmod +x "${{ github.action_path }}/cli/geode"
fi
export CLI_PROFILE="${{ github.action_path }}/cli-profile"
Expand Down
25 changes: 19 additions & 6 deletions combine/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,36 @@ runs:
using: composite
steps:
- name: Download CLI
uses: robinraju/release-downloader@v1.8
uses: robinraju/release-downloader@v1.9
with:
repository: geode-sdk/cli
latest: ${{ inputs.cli == 'latest' }}
tag: ${{ inputs.cli != 'latest' && inputs.cli || '' }}
fileName: "*-${{ steps.platform.outputs.id }}.zip"
tarBall: false
zipBall: false
fileName: "*-linux.zip"
extract: true
out-file-path: ${{ github.action_path }}
out-file-path: "${{ github.action_path }}/cli"

- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
- name: Setup CLI
shell: bash
run: |
7z x "cli/*-${{ matrix.config.cli_id }}.zip" -ocli
echo "${{ github.action_path }}/cli" >> $GITHUB_PATH
if [ ${{ steps.platform.outputs.id }} != "win" ]; then
chmod +x "${{ github.action_path }}/cli/geode"
fi
- name: Set Real Action Path
id: action-path
shell: bash
run: |
export REAL_PATH=$(realpath "${{ github.action_path }}")
echo "path=$REAL_PATH" >> $GITHUB_OUTPUT
- uses: actions/download-artifact@v4
with:
path: "${{ github.action_path }}/artifacts"
path: "${{ steps.action-path.outputs.path }}/artifacts"

- name: Combine them
shell: bash
Expand Down

0 comments on commit fd942f4

Please sign in to comment.