-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 948 Bytes
/
run_later.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
path: .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: pull vercel project
run: vercel pull --token ${{ secrets.VERCEL }} --yes
- name: deploy site
run: vercel deploy --prebuilt --token ${{ secrets.VERCEL }} --yes