Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cf worker hello world project and enable deploy via GITHUB action #78

Merged
merged 19 commits into from
Dec 17, 2022
Prev Previous commit
Next Next commit
add action
zizifn committed Dec 17, 2022
commit f336080066fb38fbc544c9eee958d7d128c1ef7a
7 changes: 5 additions & 2 deletions .github/workflows/cf-worker-deploy.yml
Original file line number Diff line number Diff line change
@@ -15,10 +15,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: envsubst
if: ${{github.event.inputs.turn_k8s_base_app == 'ON'}}
run: |
envsubst < apps/cf-worker-vless/wrangler.toml.tp > apps/cf-worker-vless/wrangler.toml
echo cf_environment="custom" >> $GITHUB_ENV
if [[ $CUSTOM_DOMAIN ]]; then
echo cf_environment="custom" >> $GITHUB_ENV
else
echo "not set CUSTOM_DOMAIN"
fi
env:
CUSTOM_DOMAIN: ${{ secrets.CUSTOM_DOMAIN }}
- name: Publish