Skip to content

Commit

Permalink
Merge branch 'main' into samuel/mirror-builtin-actors-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelarogbonlo authored Jan 2, 2024
2 parents 9eb7bc4 + 3e1b9c3 commit 4783d26
Show file tree
Hide file tree
Showing 18 changed files with 2,410 additions and 608 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy-cf-snapshot-listing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy CF forest-snapshot-listing
on:
pull_request:
paths:
- 'cf/forest-snapshot-listing/**'
- '.github/workflows/deploy-cf-snapshot-listing.yml'
push:
paths:
- 'cf/forest-snapshot-listing/**'
- '.github/workflows/deploy-cf-snapshot-listing.yml'
workflow_dispatch:

jobs:
check-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deployment check
uses: cloudflare/wrangler-action@v3
with:
workingDirectory: "cf/forest-snapshot-listing"
command: deploy --dry-run
- name: Deploy
if: github.ref == 'refs/heads/main' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch' )
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
workingDirectory: "cf/forest-snapshot-listing"
6 changes: 6 additions & 0 deletions cf/forest-snapshot-listing/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 140,
"singleQuote": true,
"semi": true,
"useTabs": false
}
7 changes: 7 additions & 0 deletions cf/forest-snapshot-listing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Snapshot listing worker

This worker acts on endpoints at `https://forest-archive.chainsafe.dev/list**` and will list objects with `diff`, `lite`, and `latest` prefixes.

# Local deployment

First, login to Cloudflare with `wrangler login`. Then, use `wrangler dev --remote` to deploy a local version of this worker which will use the `forest-archive-dev` bucket rather than the production `forest-archive` bucket. Merging changes to this worker will automatically deploy them.
Loading

0 comments on commit 4783d26

Please sign in to comment.