mirror of
https://github.com/CompeyDev/setup-rokit.git
synced 2024-12-12 12:40:36 +00:00
fix: temporarily use gh CLI to download rokit
This commit is contained in:
parent
a9c62962ab
commit
24d5dc5cdc
1 changed files with 22 additions and 3 deletions
25
action.yml
25
action.yml
|
@ -22,16 +22,35 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Install Rokit
|
- name: Download Rokit
|
||||||
run: |
|
run: |
|
||||||
case ${{ runner.os }} in
|
case ${{ runner.os }} in
|
||||||
Linux|macOS) curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | bash -s - $(echo ${{ inputs.version }} | tr -d v) ;;
|
Linux) pattern="*linux-x86_64.zip" ;;
|
||||||
Windows) gh release download ${{ inputs.version }} --repo rojo-rbx/rokit --pattern *windows-x86_64.zip && unzip rokit-*.zip && ./rokit.exe self-install ;;
|
macOS) pattern="*macos-x86_64.zip" ;;
|
||||||
|
Windows) pattern="*windows-x86_64.zip" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
gh release download ${{ inputs.version }} --repo rojo-rbx/rokit --pattern $pattern
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ inputs.token }}
|
GITHUB_TOKEN: ${{ inputs.token }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- name: Install Rokit
|
||||||
|
run: |
|
||||||
|
unzip rokit*.zip
|
||||||
|
./rokit self-install
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Delete artifacts
|
||||||
|
run: |
|
||||||
|
rm rokit*.zip
|
||||||
|
if ${{ runner.os == 'Windows' }}; then
|
||||||
|
rm rokit.exe
|
||||||
|
else
|
||||||
|
rm rokit
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Add Rokit to PATH
|
- name: Add Rokit to PATH
|
||||||
run: echo "$HOME/.rokit/bin" >> $GITHUB_PATH
|
run: echo "$HOME/.rokit/bin" >> $GITHUB_PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue