-
Notifications
You must be signed in to change notification settings - Fork 84
[DO NOT MERGE] fix: safer two workflow filecoin upload #822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
FYI I had to kick off the upload workflow manually since it will only run automatically when merged to main.. so i got the build artifact, ![]() Workflow: https://github.com/filecoin-project/lotus-docs/actions/runs/18170047009 still debugging some things.. will update this comment when I get it working. edit: successful build flow: https://github.com/filecoin-project/lotus-docs/actions/runs/18170176166 |
Filecoin Pin Upload ✅
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flow is making sense. I'll look again after looking at the action.
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.FILECOIN_PIN_GH_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GITHUB_TOKEN: ${{ secrets.FILECOIN_PIN_GH_TOKEN }} | |
GITHUB_TOKEN: ${{ github.token }} |
Why do we need a special secret for this?
path: public | ||
minDays: 30 | ||
maxTopUp: ${{ github.event_name == 'pull_request' && '0.0001' || '0.01' }} | ||
mode: upload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume we'll also show how we can store previews with a different dataset.
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build site | ||
run: npm run build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was surprised that there wasn't existing CI to hook into, but I guess that is abstracted away by a fleek app or something else
uses: sgtpooki/filecoin-upload-action@641a2bf866d4ad0c47c98c0ddefaffdd4e628500 | ||
with: | ||
path: public |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also want to be explicit about the mode?
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node-version: 20.x | |
node-version: 'lts/*' |
replacement for #821..
follows much safer two workflow pattern