mirror of
https://github.com/0x5eal/semver-luau.git
synced 2024-12-12 15:00:36 +00:00
chore(actions): use local pesde action and deps
This commit is contained in:
parent
0127e68e96
commit
47fbaecfd1
1 changed files with 6 additions and 17 deletions
23
.github/workflows/publish.yml
vendored
23
.github/workflows/publish.yml
vendored
|
@ -12,24 +12,13 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download pesde
|
- name: Install pesde
|
||||||
run: |
|
uses: ./.github/workflows/pesde.yml
|
||||||
# Figure out the latest release
|
with:
|
||||||
latest_release=$(curl -s https://api.github.com/repos/daimond113/pesde/releases | jq '[.[] | select(.prerelease == true or .prerelease == false)][0]')
|
pesde-token: ${{ secrets.PESDE_TOKEN }}
|
||||||
download_url=$(echo "$latest_release" | jq -r '.assets[] | select(.name | endswith("linux-x86_64.tar.gz")) | .browser_download_url')
|
|
||||||
|
|
||||||
# Download and extract the linux-x86_64 artifact
|
- name: Install dependencies
|
||||||
curl -L -o /tmp/pesde.tar.gz "$download_url"
|
run: pesde install
|
||||||
tar -xzvf /tmp/pesde.tar.gz
|
|
||||||
chmod +x pesde
|
|
||||||
|
|
||||||
# Install, cleanup and set PATH
|
|
||||||
./pesde self-install
|
|
||||||
rm ./pesde
|
|
||||||
echo "$HOME/.pesde/bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Authenticate into pesde registry
|
|
||||||
run: pesde auth login --token ${{ secrets.PESDE_TOKEN }}
|
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: pesde publish -y
|
run: pesde publish -y
|
||||||
|
|
Loading…
Reference in a new issue