-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into samuel/mirror-builtin-actors-releases
- Loading branch information
Showing
18 changed files
with
2,410 additions
and
608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"printWidth": 140, | ||
"singleQuote": true, | ||
"semi": true, | ||
"useTabs": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.