mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Use pnpm on Wrangler Action
This commit is contained in:
parent
a9aa720056
commit
23f2e18332
1 changed files with 12 additions and 3 deletions
15
.github/workflows/deploy-cloudflare-workers.yml
vendored
15
.github/workflows/deploy-cloudflare-workers.yml
vendored
|
|
@ -13,24 +13,33 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Deploy
|
name: Deploy
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: Checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: Setup PNPM
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
run_install: false
|
||||||
|
|
||||||
- name: Write Wrangler configs
|
- name: Write Wrangler configs
|
||||||
run: |
|
run: |
|
||||||
echo ${{ secrets.WRANGLER_ENV }} | base64 -d > doesitarm-default/.env
|
echo ${{ secrets.WRANGLER_ENV }} | base64 -d > doesitarm-default/.env
|
||||||
cat doesitarm-default/.env
|
cat doesitarm-default/.env
|
||||||
echo ${{ secrets.WRANGLER_TOML }} | base64 -d > doesitarm-default/wrangler.toml
|
echo ${{ secrets.WRANGLER_TOML }} | base64 -d > doesitarm-default/wrangler.toml
|
||||||
cat doesitarm-default/wrangler.toml
|
cat doesitarm-default/wrangler.toml
|
||||||
npm install
|
pnpm install
|
||||||
|
|
||||||
# Analytics Worker
|
# Analytics Worker
|
||||||
echo ${{ secrets.ANALYTICS_WRANGER_TOML }} | base64 -d > workers/analytics/wrangler.toml
|
echo ${{ secrets.ANALYTICS_WRANGER_TOML }} | base64 -d > workers/analytics/wrangler.toml
|
||||||
cat workers/analytics/wrangler.toml
|
cat workers/analytics/wrangler.toml
|
||||||
npm install
|
pnpm install
|
||||||
|
|
||||||
- name: Deploy Default Worker
|
- name: Deploy Default Worker
|
||||||
uses: cloudflare/wrangler-action@1.3.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
workingDirectory: 'doesitarm-default'
|
workingDirectory: 'doesitarm-default'
|
||||||
|
|
||||||
- name: Deploy Analytics Worker
|
- name: Deploy Analytics Worker
|
||||||
uses: cloudflare/wrangler-action@1.3.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue