test add workflow to test artifacts #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |