mirror of
https://github.com/0x5eal/semver-luau.git
synced 2025-01-19 02:38:05 +00:00
chore(actions): remove custom action and use 2jammers/setup-pesde
This commit is contained in:
parent
8bf19e8882
commit
408b4b0591
2 changed files with 4 additions and 31 deletions
29
.github/actions/setup-pesde/action.yml
vendored
29
.github/actions/setup-pesde/action.yml
vendored
|
@ -1,29 +0,0 @@
|
|||
name: Install pesde
|
||||
description: Installs pesde CLI and authenticates with the registry
|
||||
|
||||
inputs:
|
||||
pesde-token:
|
||||
description: "Token for publishing to the pesde registry"
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Download pesde
|
||||
shell: bash
|
||||
run: |
|
||||
latest_release=$(curl -s https://api.github.com/repos/pesde-pkg/pesde/releases | jq '[.[] | select(.prerelease == true or .prerelease == false)][0]')
|
||||
download_url=$(echo "$latest_release" | jq -r '.assets[] | select(.name | endswith("linux-x86_64.tar.gz")) | .browser_download_url')
|
||||
|
||||
curl -L -o /tmp/pesde.tar.gz "$download_url"
|
||||
tar -xzvf /tmp/pesde.tar.gz
|
||||
chmod +x pesde
|
||||
|
||||
./pesde self-install
|
||||
rm ./pesde
|
||||
echo "$HOME/.pesde/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Authenticate into pesde registry
|
||||
if: inputs.pesde-token != ''
|
||||
shell: bash
|
||||
run: pesde auth login --token "${{ inputs.pesde-token }}"
|
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
|
@ -13,9 +13,11 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install pesde
|
||||
uses: ./.github/actions/setup-pesde
|
||||
uses: 2jammers/setup-pesde@v0.2.0
|
||||
with:
|
||||
pesde-token: ${{ secrets.PESDE_TOKEN }}
|
||||
lune-version: v0.8.9
|
||||
pesde-version: v0.5.0-rc.14
|
||||
token: ${{ secrets.PESDE_TOKEN }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: pesde install
|
||||
|
|
Loading…
Reference in a new issue