Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
cloudflare-wrangler-action/.github/workflows/deploy.yml
View runs Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
70 lines (69 sloc)
1.86 KB
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
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" | |
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 ***" | |
wrangler build | |
echo "******" | |
env: | |
SECRET1: ${{ secrets.SECRET1 }} | |
SECRET2: ${{ secrets.SECRET2 }} |