Igotintothehabitofdumpingquickblogpostideasintoissuesonmyblog’srepo.It’saconvenientplacetoiterateonthemandsharewithfriendsforfeedbackbeforeactuallypublishingonmyblogpost.
Thedraftskeepaccumulating,howdoItrickmyselfintopublishingmore?Perhapsbyreducingtheeffortrequiredforthenextstep?Let’sdoit!
Architecture
Myblogisstaticallygeneratedusing?Hugo,the?codeishostedonGithub,thenwhenapullrequestcomesinitisbuilt,previewed,andpublishedonmergeby?Netlify.
ZachXBT已獲得超70萬美元捐款,ETH占比56.7%:6月17日消息,Nansen數據顯示,鏈上分析師ZachXBT已獲得超70萬美元捐款,截至發文時為711196美元,其中ETH占比56.7%,USDC、USDT分別占比26.42%、11.08%。[2023/6/18 21:44:25]
TheblogpostdraftsarepostedasGithubissues,sothereisacleargap:HowdoweconvertissuesintopullrequestsforNetlify?EnterGithubActions!
GithubAction:IssuetoPullRequest
My?fullworkflowliveshere?ifwewanttojumpahead,butlet’sbreakdownthebroadstrokes.
Idecidedtotriggerthepublishingprocessonceanissueislabelledwith‘publish’,solet’sstartwiththat:
數據:USDC流通量已降至305億枚附近:金色財經報道,據 Circle 官網數據,4 月 20 日至 4 月 27 日期間,Circle 共發行約 7 億枚 USDC,贖回約 11 億枚 USDC,流通量減少約 5 億枚。過去 30 日,Circle 共發行約 22 億枚 USDC,贖回 50 億枚 USDC,流通量減少 28 億枚。截止 4 月 27 日,USDC 總流通量約為 305 億枚,資金儲備量為 307 億美元。[2023/4/30 14:35:47]
name:?Publish?post?from?issue??on:??issues:??types:???jobs:??build:??if:?${{?github.event.label.name?==?'publish'?}}??runs-on:?ubuntu-latest??steps:??...
Nextupwewanttospecifythesteps,firstthingistocheckouttherepositoryintotheaction’senvironment:
歐盟負責互聯網監管的官員警告馬斯克,推特必須遵守歐盟的“規則”:10月28日消息,歐盟負責互聯網監管的官員警告馬斯克,推特必須遵守歐盟的“規則”。(法新社)[2022/10/28 11:52:58]
?-?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.
Runningthepayloadthroughenvironmentvariableshelpswithnotneedingtoescapevariouscharacterslike`.
StarkNet生態游戲集成平臺Cartridge發布預覽圖,包含Dope Wars等游戲:7月29日消息,StarkNet生態游戲集成平臺Cartridge在推特發布預覽圖。圖中顯示其平臺集成Dope Wars、briq、Realms、Topology、MatchboxDAO、No Game等游戲。[2022/7/29 2:46:36]
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?}}"
The Sandbox與內容制作商Studio Dragon合作構建K-Drama元宇宙:5月17日消息,The Sandbox與內容制作商Studio Dragon達成合作,計劃構建基于Studio Dragon知識產權的K-Drama元宇宙,此外Studio Dragon將使用全球流行的戲劇IP制作頭像配件和游戲物品NFT,同時Studio Dragon將在Studio Dragon LAND中與全球IP合作內容。[2022/5/17 3:20:41]
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.
來源:金色財經
作者:MattHussey 來源:Decrypt 2020年,大型投資者和一家全球金融機構發布的一系列聲明點燃了比特幣價格下的觸角。近期,一系列知名的投資者紛紛宣布,他們對比特幣進行了大量投資.
1900/1/1 0:00:00程雪:午間點評 短期來看近期行情持續向24000區間試探,但多頭經過長時不斷試探,最終還是未能站穩上方區間,最終多頭出現力竭情況昨日晚盤逐漸走弱回到22600區間繼續延續震蕩蓄力趨勢.
1900/1/1 0:00:00昨日的大陰線打亂了震蕩向上的節奏,但辯證的看,也使得市場集中釋放了風險!下跌放量明顯,也說明在市場宣泄情緒的時候有資金選擇入場抄底!外圍市場受到變異病的影響在逐漸減弱,昨日外圍市場出現了反彈.
1900/1/1 0:00:00完美的布局加上精準的預判,顏家又是收獲頗豐。也恭喜顏家的實倉幣友獲利滿滿出局。那么根據今天晚間08時49分根據技術面分析出來的操作思路,之后進行分享,關注顏家的幣友都會收到顏家獲利的消息通知:約.
1900/1/1 0:00:00人生如戲,戲如人生,漲跌皆有因,多空皆可為。給的思路,有盈也有損,長期參照的人嘴角必然都是上揚的。火把倒下,火焰依然向上,逆勢很辛苦,順勢很坦然,跟隨不是依賴,面對K線,你不勇敢,沒人替你堅強.
1900/1/1 0:00:00以太坊開發人員已經開始審查網絡費用定價的算法更改,這有可能導致以太坊總供應量減少。以太坊改進提案1559為網絡設置了一種基礎費用,該基礎費用是根據網絡是否擁塞而通過算法計算得出的,會根據情況相應.
1900/1/1 0:00:00