test: add article to test workflows #2
Workflow file for this run
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: Deploy preview for PR | ||
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.workflow_run.pull_requests[0].number }}/" | ||
jobs: | ||
deploy-preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Debug: List workflow details | ||
run: | | ||
echo "Workflow name: ${{ github.event.workflow_run.name }}" | ||
echo "Pull request: ${{ github.event.workflow_run.pull_requests[0].number }}" | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: public-folder | ||
path: ./public |