mirror of
https://github.com/ApfelTeeSaft/R2-Explorer.git
synced 2026-08-27 03:43:32 +00:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 1 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v1...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Deploy
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
name: Deploy
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20.x'
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- name: Setup R2-Explorer
|
|
env:
|
|
R2EXPLORER_WORKER_NAME: ${{ vars.R2EXPLORER_WORKER_NAME }}
|
|
R2EXPLORER_CONFIG: ${{ vars.R2EXPLORER_CONFIG }}
|
|
R2EXPLORER_BUCKETS: ${{ vars.R2EXPLORER_BUCKETS }}
|
|
R2EXPLORER_DOMAIN: ${{ vars.R2EXPLORER_DOMAIN }}
|
|
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
|
run: node packages/github-action/prepareDeploy.js
|
|
- name: Get latest version
|
|
run: cd packages/github-action && npm install && npm install --save r2-explorer@latest
|
|
- name: Deploy
|
|
uses: cloudflare/wrangler-action@v3
|
|
with:
|
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
workingDirectory: "packages/github-action"
|