This commit is contained in:
tree 2022-01-01 07:06:27 +01:00
rodič f5cf0bc30d
revize ad55ecabb6
4 změnil soubory, kde provedl 142 přidání a 2 odebrání

Zobrazit soubor

@ -14,12 +14,19 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Build sources
run: deno run --allow-read --allow-write scripts/build.js
- name: Add custom domain
run: "touch CNAME && echo \"spec.utxo.cz\" >> CNAME"
run: "touch dist/CNAME && echo \"spec.utxo.cz\" >> dist/CNAME"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
publish_dir: ./dist

4
dist/index.json vendorováno Normal file
Zobrazit soubor

@ -0,0 +1,4 @@
{
"name": "UTXO.22",
"shortname": "UTXO"
}

109
dist/speakers.json vendorováno Normal file
Zobrazit soubor

@ -0,0 +1,109 @@
[
{
"name": "Adam Kracík",
"twitter": null
},
{
"name": "Adam Studeník",
"twitter": "adamstudenik"
},
{
"name": "Anett Rohlikova",
"twitter": "anettrolikova",
"orgs": "[Ethereum Magicians](https://ethereum-magicians.org/)\n"
},
{
"name": "damsky",
"twitter": "CryptoDamSky"
},
{
"name": "DavidBankless",
"twitter": "davidbankless",
"orgs": "[Flipper.Zone](https://twitter.com/flipperzonenft), [BanklessDAO](https://www.bankless.community)\n"
},
{
"name": "Honza Dvořák",
"nickname": "Gorrdy",
"twitter": "_Honza_Dvorak",
"orgs": "[btcplatby.cz](https://btcplatby.cz)\n"
},
{
"name": "Jiří Čepelka",
"twitter": "JiriCepelka"
},
{
"id": "juraj-bednar",
"name": "Juraj Bednár",
"twitter": "jurbed",
"bio": "Podnikatel, hacker a milovník svobody",
"orgs": "Spoluzakladatel [Hacktrophy](https://hacktrophy.com/sk/), člen [Paralelné Polis](https://paralelnapolis.sk/)\n",
"web": {
"url": "https://juraj.bednar.io/"
},
"lead": true
},
{
"name": "Vladimír Pinker",
"nickname": "KryptoVláďa",
"twitter": "KryptoVlada",
"orgs": "[KryptoVláďa](https://www.kryptovlada.win)\n"
},
{
"id": "mario-havel",
"name": "Mario Havel",
"twitter": "TMIYChao",
"bio": "Kryptoanarchista, libertarián a hacker",
"orgs": "Zakladatel [Bordel Hackerspace](https://bordel.paralelnipolis.cz/#/), člen [Paralelní Polis](https://www.paralelnipolis.cz/)\n",
"lead": true
},
{
"name": "m0xt",
"twitter": "m0xt_"
},
{
"name": "Petr Klein",
"twitter": "kleinpetr_com"
},
{
"id": "petr-mara",
"name": "Petr Mára",
"twitter": "petrmara",
"bio": "Technologický optimista, sběratel NFT",
"web": {
"url": "https://www.petrmara.com/"
},
"lead": true
},
{
"name": "Petr Menšík",
"twitter": "petr_mensik",
"orgs": "[Polkadotters](https://twitter.com/polkadotterss)\n"
},
{
"name": "Pavel Přecechtěl",
"nickname": "HomΞr Shillson",
"twitter": "homershillson",
"orgs": "[VR Education](https://vreducation.cz)\n"
},
{
"id": "robert-chovanculiak",
"name": "Róbert Chovanculiak",
"twitter": "RChovanculiak",
"bio": "Autor knihy [Pokrok bez povolenia](https://libinst.cz/produkt/pokrok-bez-povolenia/)",
"orgs": "Analytik v [INESS](https://www.iness.sk), pedagog na [CEVRO Institutu](https://www.cevroinstitut.cz/cs/pedagog/ing-robert-chovanculiak-ph-d/)\n",
"web": {
"name": "Pokrok bez povolenia (newsletter)",
"url": "https://robertchovanculiak.substack.com/"
},
"lead": true
},
{
"name": "Tomáš Zdražil",
"twitter": "investree_cz",
"orgs": "[Investree](https://investree.cz)\n"
},
{
"name": "Tomáš",
"orgs": "[KryptoVláďa komunita](https://www.kryptovlada.win)\n"
}
]

20
scripts/build.js Normal file
Zobrazit soubor

@ -0,0 +1,20 @@
import { ensureDir } from "https://deno.land/std/fs/mod.ts";
import { load } from 'https://deno.land/x/js_yaml_port/js-yaml.js'
const srcDir = './src'
const outputDir = './dist'
await ensureDir(outputDir)
for await (const f of Deno.readDir(srcDir)) {
const m = f.name.match(/^(.+)\.yaml$/)
if (!m) {
continue
}
const yaml = load(await Deno.readTextFile(srcDir + '/' + f.name))
const outputFn = outputDir + '/' + m[1] + '.json'
await Deno.writeTextFile(outputFn, JSON.stringify(yaml, null, 2))
console.log(`${outputFn} writed`)
}
console.log('done')