Igotintothehabitofdumpingquickblogpostideasintoissuesonmyblog’srepo.It’saconvenientplacetoiterateonthemandsharewithfriendsforfeedbackbeforeactuallypublishingonmyblogpost.
Thedraftskeepaccumulating,howdoItrickmyselfintopublishingmore?Perhapsbyreducingtheeffortrequiredforthenextstep?Let’sdoit!
Architecture
Myblogisstaticallygeneratedusing?Hugo,the?codeishostedonGithub,thenwhenapullrequestcomesinitisbuilt,previewed,andpublishedonmergeby?Netlify.
余弦:Azuki Elementals某些圖存在缺陷,owner可通過合約的setBaseURI修改新圖庫鏈接路徑:6月28日消息,慢霧創始人余弦發推稱,Azuki Elementals的一些圖有缺陷,owner通過合約的setBaseURI改下新圖庫鏈接路徑即可。
余弦補充稱,改路徑屬于正常行為,如果之后不再改的話,可以效仿BAYC把owner扔到黑洞地址。他還分享了Azuki的圖庫鏈接路徑,并表示圖庫鏈接路徑是中心化的,直接替換圖片就行。[2023/6/28 22:05:42]
TheblogpostdraftsarepostedasGithubissues,sothereisacleargap:HowdoweconvertissuesintopullrequestsforNetlify?EnterGithubActions!
GithubAction:IssuetoPullRequest
My?fullworkflowliveshere?ifwewanttojumpahead,butlet’sbreakdownthebroadstrokes.
0xScope:持有近8萬枚比特幣的巨鯨已沉睡12年,并未轉出資金:金色財經報道,據0xScope監測顯示,擁有79957枚比特幣的巨鯨已經沉睡12年,并沒有比特幣轉出。據推測,該地址屬于Mt.Gox黑客,一直無比特幣轉出,但這些年里有若干筆隨機收到的小于0.00001枚BTC的資金轉入。[2023/4/25 14:25:26]
Idecidedtotriggerthepublishingprocessonceanissueislabelledwith‘publish’,solet’sstartwiththat:
name:?Publish?post?from?issue??on:??issues:??types:???jobs:??build:??if:?${{?github.event.label.name?==?'publish'?}}??runs-on:?ubuntu-latest??steps:??...
Nextupwewanttospecifythesteps,firstthingistocheckouttherepositoryintotheaction’senvironment:
CZ:加密貨幣和法幣之間不是戰斗:金色財經報道,針對國際清算銀行負責人Carstens稱法幣已贏得了與加密貨幣的戰斗,Galaxy首席執行官Mike Novogratz稱其過于固執己見,過去十年成噸的法幣已貶值50%以上,而BTC和ETH已升值了很多。對此幣安首席執行官CZ認為加密貨幣和法幣之間不是戰斗,技術不與任何人戰斗。喜歡就用,不喜歡就別用,就這樣,但是越來越多的人會使用加密……值得拭目以待。[2023/2/23 12:25:24]
?-?uses:?actions/checkout}??POST_BODY:?${{?github.event.issue.body?}}??run:?|???????????cat?>?"content/posts/${POST_TITLE}.md"?<<?EOF??${POST_BODY}??EOF
Thisshovesthebodyoftheissue,whichisalreadymarkdown,intoamarkdownfilenamedbasedonthetitleoftheissue.Thisisagoodplacetoaddfrontmatter,orslugifythetitle,orwhateverelseyourblogsetuprequires.
Web3開發平臺Moralis將集成至Aptos:1月18日消息,Web3 開發平臺 Moralis 宣布將集成至 Aptos,參與 Aptos 的開發人員將能夠使用 Moralis 符合國際標準的 Web3 應用程序接口(API),他們的操作將會變得更加便捷。據官方數據顯示,Aptos 鏈上交易量已突破 7000 萬筆,截止目前達到 71,391,253 筆,活躍質押量為 839,021,485 枚 APT。[2023/1/18 11:19:25]
Runningthepayloadthroughenvironmentvariableshelpswithnotneedingtoescapevariouscharacterslike`.
Andfinally,wemakethepullrequestusingPeterEvan’screate-pull-requestactionwhichmakesthissupereasy:
?-?name:?Create?Pull?Request??uses:?peter-evans/create-pull-request}"??body:?|?????????????Automagically?sprouted?for?publishing.??Merging?will?publish?to:?https://shazow.net/posts/${{?github.event.issue.title?}}??Closes?#${{?github.event.issue.number?}}??reviewers:?${{?github.repository_owner?}}??commit-message:?"post:?${{?github.event.issue.title?}}"
歐易OKX首發上線Optimism (OP):據官方消息,歐易OKX將于5月31日20:00(HKT)開放Optimism代幣OP充值,將于6月2日18:00(HKT)開放提現,平臺將在用戶充值數量符合開通交易的情況下第一時間上線交易。此外,歐易OKX是首家接入Optimism網絡的交易所,用戶可在歐易和Optimism網絡之間轉移資金。
據悉,Optimism是以太坊Layer2擴容解決方案之一,旨在建立基于Optimistic Rollup技術的以太坊網絡和Optimistic虛擬機來擴展以太坊,降低以太坊應用程序上的交易費用、提高交易效率及安全性。[2022/6/1 3:53:56]
Result
Whenmyblogpostdraftisready,IaddthetagandtheGithubactiontakesitaway,creatingapullrequest:
Thepullrequestautomaticallypingsmeasareviewer,andincludesa“Closes#X”linewhichwillclosethedraftissueoncethePRismerged.Veryconvenient!
Oncethepullrequestisready,Netlifytakesitaway,buildseverythingandgeneratesahandypreview:
Icanmakesureeverythinglooksright,andevenapplyeditsdirectlyinsidethepullrequest.Thisisanothergreatsteptosendalongblogpostforfeedback,usingallofthewonderfulPullRequestReviewfeatures!
Whenallissaidanddone,mergingthepullrequesttriggersNetlifytopublishmychangestomydomain,andmergingclosestheoriginalissue,andI’mdone!
Bonus
Dragn’dropimagesworkinGithubIssues,soit’ssupereasytowriteaquickpostwithabunchofscreenshotsorwhathaveyou.
It’simportanttomethatI’mnottootightlycoupledtothird-partyservices,sothepullrequestandcodemergeflowmakessurethatallofthepublishedstatecontinuestoliveinsideofmyGitrepository.
IcanstillmakeblogpoststhewayIusedto:Pullthelatestrepo,writesomemarkdown,andpushtopublish.
Iaddedalittle?frontmatterifyscript?toprocesstheincomingmarkdownandconverttheremoteGithubIssueuploadedimagesintolocalimagesthatareincludedinthepullrequest.ThescriptalsogeneratesfrontmatterthatIuseforHugo.It’sabitclunkybutworksfornow.
Alright,let’sdothis.
來源:金色財經
Tags:THEESTINGISS女生突然把網名改成EtherealAceStarterStrykingThe Missor
作者AmyLiu 白宮今日發布了一份關于穩定幣監管考慮的聲明,其中包括對“多幣種穩定幣”的潛在限制。這份聲明來自總統金融市場工作組,該工作組以財政部為中心,向總統和聯邦監管機構提出建議.
1900/1/1 0:00:00比特幣再次觸摸24000美金空頭信號已經釋放? 美股收盤,標普500指數漲0.45%:金色財經報道,美股收盤,道指漲0.8%,標普500指數漲0.45%,納指平收.
1900/1/1 0:00:0012月22日,由Nova主辦、Cointelegraph中文聯合主辦的第二屆Nova全球區塊鏈投資機構峰會在三亞成功舉辦,《Nova2020年區塊鏈產業發展和投資趨勢研究報告》發布.
1900/1/1 0:00:00老李今日早間分享的以太坊空單策略,精準的布局,破位獲利16刀?恭喜收到老李實時操作的幣友們。Binance將于11月28日下架多個現貨交易對:據官方消息,Binance宣布將于11月28日11:.
1900/1/1 0:00:00各位朋友們,大家下午好,我是幣圈大將軍(BTC219)。本著負責、誠懇、認真的態度用心寫好每一篇分析文章,特點鮮明,不夸張,不含糊,力求能讓大家看懂大的趨勢分析以及小范圍的多空搏殺力度!Fire.
1900/1/1 0:00:0012月23日,以“突破、引領、共贏”為主旨的2020BitMax兩周年慶典在北京王府井完美收官.
1900/1/1 0:00:00