From 0a35549eed8d3277e820a58b2fcd997549b7a202 Mon Sep 17 00:00:00 2001 From: "kirill.chalov" Date: Tue, 10 Dec 2024 19:17:23 +0800 Subject: [PATCH] test add workflow to test artifacts --- .github/workflows/pr-test-artifacts.yml | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/pr-test-artifacts.yml diff --git a/.github/workflows/pr-test-artifacts.yml b/.github/workflows/pr-test-artifacts.yml new file mode 100644 index 000000000..2ca1edfc4 --- /dev/null +++ b/.github/workflows/pr-test-artifacts.yml @@ -0,0 +1,28 @@ +name: Test artifacts + +on: + pull_request: + branches: [develop] + +permissions: + contents: read + id-token: write + pull-requests: write + +env: + HUGO_BASEURL: "https://preview-developer.espressif.com/pr${{ github.event.pull_request.number }}/" # Use pull_request directly + +jobs: + deploy-preview: + runs-on: ubuntu-latest + + steps: + - name: Debug: List workflow details + run: | + echo "Pull request number: ${{ github.event.pull_request.number }}" + + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + name: public-folder + path: ./public