Publish Release Assets #46
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: Publish Release Assets | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
publish-to-cloudflare: | |
name: Publish to Cloudflare | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Download assets from latest release | |
run: | | |
mkdir assets && \ | |
gh release download --repo ${{ github.repository }} --pattern '*' --dir .cloudflare/public | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
workingDirectory: .cloudflare |