Download and Cat Artifact #31
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: Download and Cat Artifact | |
on: | |
workflow_run: | |
workflows: ["Create and Upload Artifact"] | |
types: | |
- completed | |
permissions: | |
actions: read | |
jobs: | |
download-artifact: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: vercel | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
run-id: ${{ github.event.workflow_run.id }} | |
- name: Cat artifact | |
run: ls -R . | |
# - name: install node | |
# uses: actions/setup-node@v2 | |
# with: | |
# node-version: "18" | |
# - name: install vercel cli | |
# run: npm install -g vercel | |
# - name: deploy site | |
# run: vercel deploy --prebuilt |