mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-21 17:43:23 +01:00
Update workflow and separate into multiple jobs
This commit is contained in:
parent
844c30604b
commit
1e37135bae
1 changed files with 25 additions and 28 deletions
53
.github/workflows/deploy.yml
vendored
53
.github/workflows/deploy.yml
vendored
|
@ -1,51 +1,48 @@
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Deploy
|
name: Lint
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v2
|
||||||
- name: Lint shell script
|
- name: Lint shell script
|
||||||
uses: azohra/shell-linter@v0.1.0
|
uses: azohra/shell-linter@v0.3.0
|
||||||
with:
|
with:
|
||||||
path: "entrypoint.sh"
|
path: "entrypoint.sh"
|
||||||
- name: Publish app with api token
|
publish:
|
||||||
uses: signalnerve/wrangler-action@1.1.0
|
runs-on: ubuntu-latest
|
||||||
|
name: Publish app
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Publish app
|
||||||
|
uses: ./
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
environment: "production"
|
environment: "production"
|
||||||
workingDirectory: 'test'
|
workingDirectory: 'test'
|
||||||
- name: Publish app with legacy credentials
|
publish_legacy_credentials:
|
||||||
uses: signalnerve/wrangler-action@1.1.0
|
runs-on: ubuntu-latest
|
||||||
|
name: Publish app with legacy credentials
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Publish app
|
||||||
|
uses: ./
|
||||||
with:
|
with:
|
||||||
apiKey: ${{ secrets.CLOUDFLARE_API_KEY }}
|
apiKey: ${{ secrets.CLOUDFLARE_API_KEY }}
|
||||||
email: ${{ secrets.CLOUDFLARE_EMAIL }}
|
email: ${{ secrets.CLOUDFLARE_EMAIL }}
|
||||||
environment: "production"
|
environment: "production"
|
||||||
workingDirectory: 'test'
|
workingDirectory: 'test'
|
||||||
- name: Publish app with hardcoded Wrangler version
|
publish_hardcoded_wrangler_version:
|
||||||
uses: signalnerve/wrangler-action@1.1.0
|
runs-on: ubuntu-latest
|
||||||
|
name: Publish app with hardcoded Wrangler version
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Publish app
|
||||||
|
uses: ./
|
||||||
with:
|
with:
|
||||||
apiKey: ${{ secrets.CLOUDFLARE_API_KEY }}
|
apiKey: ${{ secrets.CLOUDFLARE_API_KEY }}
|
||||||
email: ${{ secrets.CLOUDFLARE_EMAIL }}
|
email: ${{ secrets.CLOUDFLARE_EMAIL }}
|
||||||
environment: "production"
|
environment: "production"
|
||||||
wranglerVersion: '1.5.0'
|
wranglerVersion: '1.5.0'
|
||||||
workingDirectory: 'test'
|
workingDirectory: 'test'
|
||||||
- name: Publish app (fails with missing auth)
|
|
||||||
uses: signalnerve/wrangler-action@1.1.0
|
|
||||||
with:
|
|
||||||
environment: "production"
|
|
||||||
wranglerVersion: '1.5.0'
|
|
||||||
continue-on-error: true
|
|
||||||
- name: Publish app (fails with api key, missing email)
|
|
||||||
uses: signalnerve/wrangler-action@1.1.0
|
|
||||||
with:
|
|
||||||
apiKey: ${{ secrets.CLOUDFLARE_API_KEY }}
|
|
||||||
environment: "production"
|
|
||||||
continue-on-error: true
|
|
||||||
- name: Publish app (fails with email, missing api key)
|
|
||||||
uses: signalnerve/wrangler-action@1.1.0
|
|
||||||
with:
|
|
||||||
email: ${{ secrets.CLOUDFLARE_EMAIL }}
|
|
||||||
environment: "production"
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
Loading…
Reference in a new issue