mirror of
https://github.com/cloudflare/pages-action
synced 2024-12-18 06:20:29 +00:00
5a764d10b6
* Whole bunch of general improvements * debug * Fix env * Add all outputs to workflow * pls fail * Fix deployment saying prod * remove debug * Fix alias issue
28 lines
809 B
YAML
28 lines
809 B
YAML
on: [push]
|
|
|
|
jobs:
|
|
example:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
deployments: write
|
|
name: Example
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Publish to Cloudflare Pages
|
|
uses: ./
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: 468cce80dfb431f3a4058e6dc6031a44
|
|
projectName: github-actions-example
|
|
directory: example
|
|
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
id: publish
|
|
- name: Outputs
|
|
run: |
|
|
echo "ID: ${{ steps.publish.outputs.id }}"
|
|
echo "URL: ${{ steps.publish.outputs.url }}"
|
|
echo "Environment: ${{ steps.publish.outputs.environment }}"
|
|
echo "Alias: ${{ steps.publish.outputs.alias }}"
|