Skip to Content
가이드통합하기GitHub Actions

GitHub Actions로 통합

공식 액션 두 가지로 GitHub Actions 단계에서 Deplite를 호출해요.

  • Deplite/trigger-action — 트리거 호출
  • Deplite/files-action — Deplite 스토리지에 파일 업로드·다운로드·삭제

1. API 토큰 발급

대시보드 API 토큰으로 이동한 뒤, 오른쪽 상단의 토큰 발급을 눌러 필요한 scope의 토큰을 만들어주세요.
토큰(dpl_...) 평문은 발급 직후 한 번만 표시돼요.
그 자리에서 GitHub repo의 Settings → SecretsDEPLITE_API_TOKEN으로 저장해주세요.

2. 트리거 호출

- uses: Deplite/trigger-action@v1 with: api-token: ${{ secrets.DEPLITE_API_TOKEN }} trigger-id: 00000000-0000-0000-0000-000000000000 params: '{"ref":"main"}' wait: sync # sync | async (기본값: async)

wait: sync로 호출하면 잡 완료까지 기다리고, 잡이 실패하면 step도 실패해요.

3. 파일과 함께 트리거 (선택)

- uses: Deplite/files-action@v1 id: upload with: api-token: ${{ secrets.DEPLITE_API_TOKEN }} mode: upload path: ./build/app.apk cleanup-rule: ttl ttl-seconds: 3600 - uses: Deplite/trigger-action@v1 with: api-token: ${{ secrets.DEPLITE_API_TOKEN }} trigger-id: 00000000-0000-0000-0000-000000000000 params: '{"apkFileId":"${{ steps.upload.outputs.file-id }}"}' wait: sync

전체 입력·출력 파라미터와 옵션은 GitHub Actions 문서를 참고해주세요.

관련 문서

최종 수정 일자: