mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-25 03:14:46 +01:00
91 lines
No EOL
2.4 KiB
YAML
91 lines
No EOL
2.4 KiB
YAML
on: push
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
name: Lint
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Lint shell script
|
|
uses: azohra/shell-linter@v0.3.0
|
|
with:
|
|
path: "entrypoint.sh"
|
|
build-only:
|
|
runs-on: ubuntu-latest
|
|
name: Only build the app
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build app
|
|
uses: ./
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
workingDirectory: "test"
|
|
publish: false
|
|
secrets: |
|
|
SECRET1
|
|
SECRET2
|
|
preCommands: echo "*** pre commands ***"
|
|
postCommands: |
|
|
echo "*** post commands ***"
|
|
wrangler build
|
|
echo "******"
|
|
env:
|
|
SECRET1: ${{ secrets.SECRET1 }}
|
|
SECRET2: ${{ secrets.SECRET2 }}
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
name: Publish app
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Publish app
|
|
uses: ./
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
environment: "production"
|
|
workingDirectory: 'test'
|
|
publish_legacy_credentials:
|
|
runs-on: ubuntu-latest
|
|
name: Publish app with legacy credentials
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Publish app
|
|
uses: ./
|
|
with:
|
|
apiKey: ${{ secrets.CLOUDFLARE_API_KEY }}
|
|
email: ${{ secrets.CLOUDFLARE_EMAIL }}
|
|
environment: "production"
|
|
workingDirectory: 'test'
|
|
publish_hardcoded_wrangler_version:
|
|
runs-on: ubuntu-latest
|
|
name: Publish app with hardcoded Wrangler version
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Publish app
|
|
uses: ./
|
|
with:
|
|
apiKey: ${{ secrets.CLOUDFLARE_API_KEY }}
|
|
email: ${{ secrets.CLOUDFLARE_EMAIL }}
|
|
environment: "production"
|
|
wranglerVersion: '1.5.0'
|
|
workingDirectory: 'test'
|
|
publish_secrets:
|
|
runs-on: ubuntu-latest
|
|
name: Publish app with secrets
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Publish app
|
|
uses: ./
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
environment: "production"
|
|
workingDirectory: "test"
|
|
secrets: |
|
|
SECRET1
|
|
SECRET2
|
|
preCommands: echo "*** pre command ***"
|
|
postCommands: |
|
|
echo "*** post commands ***"
|
|
echo "******"
|
|
env:
|
|
SECRET1: ${{ secrets.SECRET1 }}
|
|
SECRET2: ${{ secrets.SECRET2 }} |