From 47fbaecfd12a99d753c39ad458e709c367b8e057 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Thu, 21 Nov 2024 18:56:13 +0000 Subject: [PATCH] chore(actions): use local pesde action and deps --- .github/workflows/publish.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c50ab00..2fd9ffe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,24 +12,13 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Download pesde - run: | - # Figure out the latest release - latest_release=$(curl -s https://api.github.com/repos/daimond113/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') + - name: Install pesde + uses: ./.github/workflows/pesde.yml + with: + pesde-token: ${{ secrets.PESDE_TOKEN }} - # Download and extract the linux-x86_64 artifact - curl -L -o /tmp/pesde.tar.gz "$download_url" - 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: Install dependencies + run: pesde install - name: Publish run: pesde publish -y