mirror of
https://github.com/deployflare/ssh.git
synced 2026-01-13 16:18:02 +00:00
Initial commit
This commit is contained in:
17
.github/workflows/auto-name.yml
vendored
Normal file
17
.github/workflows/auto-name.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
on: push
|
||||
permissions: write-all
|
||||
jobs:
|
||||
j:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
n=${GITHUB_REPOSITORY#*/};n=$(echo $n|tr A-Z a-z)
|
||||
jq ".name=\"$n\"" package.json>p.json && mv p.json package.json
|
||||
sed -i "s/^name *=.*$/name = \"$n\"/" wrangler.toml
|
||||
git diff --quiet || {
|
||||
git config user.email a@a.a
|
||||
git config user.name a
|
||||
git commit -am update
|
||||
git push
|
||||
}
|
||||
11
.github/workflows/deep.yml
vendored
Normal file
11
.github/workflows/deep.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
jobs:
|
||||
deploy-cloudflare:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
Reference in New Issue
Block a user