Igotintothehabitofdumpingquickblogpostideasintoissuesonmyblog’srepo.It’saconvenientplacetoiterateonthemandsharewithfriendsforfeedbackbeforeactuallypublishingonmyblogpost.
Thedraftskeepaccumulating,howdoItrickmyselfintopublishingmore?Perhapsbyreducingtheeffortrequiredforthenextstep?Let’sdoit!
Architecture
Myblogisstaticallygeneratedusing?Hugo,the?codeishostedonGithub,thenwhenapullrequestcomesinitisbuilt,previewed,andpublishedonmergeby?Netlify.
摩根大通将其JPM Coin系统扩展到包括欧元支付:金色财经报道,摩根大通扩大了其基于区块链的支付系统JPM Coin,为企业客户提供以欧元计价的交易。据Toprak称,德国科技巨头西门子在该平台上进行了第一笔欧元支付。
摩根大通硬币支付系统最初于2019年推出,用于转移美元。在欧元扩张之际,JPM Coin迄今已处理了超过3,000亿美元的交易。[2023/6/23 21:56:16]
TheblogpostdraftsarepostedasGithubissues,sothereisacleargap:HowdoweconvertissuesintopullrequestsforNetlify?EnterGithubActions!
GithubAction:IssuetoPullRequest
My?fullworkflowliveshere?ifwewanttojumpahead,butlet’sbreakdownthebroadstrokes.
Idecidedtotriggerthepublishingprocessonceanissueislabelledwith‘publish’,solet’sstartwiththat:
时尚品牌Diesel和HAPE社区合作将推出可穿戴NFT空投:金色财经报道,据Decentraland官方网站信息显示,时尚品牌Diesel将与HAPE社区将于3月30日在Decentraland的D-CAVE虚拟空间推出元宇宙时尚周,届时将为所有参与者提供多个可穿戴NFT空投。Diesel去年和HAPE NFT达成合作并正式进军Web3领域,此前还发布了一款名为Prototype的新运动鞋及NFT并且推出专门针对Diesel和NFT爱好者的元宇宙平台D:Verse。[2023/3/27 13:28:05]
name:?Publish?post?from?issue??on:??issues:??types:???jobs:??build:??if:?${{?github.event.label.name?==?'publish'?}}??runs-on:?ubuntu-latest??steps:??...
Nextupwewanttospecifythesteps,firstthingistocheckouttherepositoryintotheaction’senvironment:
MetaMask Grants DAO公布首批赠款接收方:Agoric和Safeheron:12月23日消息,MetaMask公布其新成立的MetaMask Grants DAO首批赠款接收方,分别为JavaScript智能合约Agoric和数字资产安全存管解决方案提供商Safeheron。Agoric将通过该笔50万美元的资助继续开发一系列开源工具。Safeheron将通过该笔3.5万美元的赠款开发和安全审计MetaMask Flask、Keystone硬件钱包和移动应用程序(MetaMask Mobile或替代品)的密钥分片解决方案,MetaMask、Safeheron和Keystone已经合作实施2/2 MPC snap,这笔赠款将资助该项目向2/3 MPC snap发展。[2022/12/23 22:03:28]
?-?uses:?actions/checkout}??POST_BODY:?${{?github.event.issue.body?}}??run:?|???????????cat?>?"content/posts/${POST_TITLE}.md"?<<?EOF??${POST_BODY}??EOF
香港加密投资平台Q9 Capital已获得迪拜虚拟资产监管局的临时批准:10月31日消息,香港加密投资平台Q9 Capital已获得迪拜虚拟资产监管局 (VARA) 的临时批准,计划在迪拜建立一个区域中心,以帮助发展其虚拟资产生态系统。此外,该公司还计划向全球资产和财富管理公司提供产品创建和执行服务。
据悉,Q9 Capital成立于2020年,其投资引擎和白标解决方案使资产和财富管理机构能够通过单一UI创建、执行、管理和报告数字资产投资策略。[2022/10/31 11:59:16]
Thisshovesthebodyoftheissue,whichisalreadymarkdown,intoamarkdownfilenamedbasedonthetitleoftheissue.Thisisagoodplacetoaddfrontmatter,orslugifythetitle,orwhateverelseyourblogsetuprequires.
Runningthepayloadthroughenvironmentvariableshelpswithnotneedingtoescapevariouscharacterslike`.
Coinbase批评美国加密货币监管现状,为SEC提供相关建议:金色财经消息,Coinbase在提交给美国证券交易委员会(SEC)的一份文件中,批评了目前的加密货币监管状况。Coinbase首席政策官Faryar Shirzad对此解释称,如果没有有效的监管,美国将在数字资产创新方面落后。
在提交的文件中,Coinbase首席法务官Paul Grewal概述了与监管加密货币有关的主要挑战,包括对哪些数字资产是否构成证券缺乏明确的认识,以及相互矛盾或不必要的要求。Grewal还列出了SEC在创建监管框架、解决分类、发行、交易和托管方面需要考虑的一系列问题。(CoinDesk)[2022/7/22 2:30:03]
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?}}"
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.
来源:金色财经
郑重声明: 本文版权归原作者所有, 转载文章仅为传播更多信息之目的, 如作者信息标记有误, 请第一时间联系我们修改或删除, 多谢。