add publish to CF (#232)

This commit is contained in:
vilorij 2023-08-30 12:51:05 +07:00 committed by GitHub
parent 4f1b379de3
commit 9649cb182b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,20 @@ jobs:
dockerfile-path: .
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
- name: set config
run: |
printf "$APP_ENV_FILE" > dist/v1/appConfig.json
shell: bash
env:
APP_ENV_FILE: ${{secrets.APP_CONFIG_CF}}
- name: Publish to CF Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: 'payform'
directory: 'dist'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Create Sentry release
uses: getsentry/action-release@v1
env: