From 98e432568489f4c59ebebb3800247fa6ed84c551 Mon Sep 17 00:00:00 2001 From: Marcus Pousette Date: Mon, 28 Oct 2024 19:41:54 +0100 Subject: [PATCH] fix: add ci --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ README.md | 11 +++++++++++ bootstrap-4.env | 2 ++ bootstrap.env | 1 - 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml create mode 100644 README.md create mode 100644 bootstrap-4.env delete mode 100644 bootstrap.env diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..71a93a5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Upload Website + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + + - name: Build + run: yarn install && yarn build + + - name: Deploy bootstrap config + run: | + aws s3 sync ./bootstrap-4.env s3://bootstrap-peerchecker-com-dist --delete + aws cloudfront create-invalidation --distribution-id ETKLQVXX2I9CQ --paths '/*'; \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..5a3ec91 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# Peerbit Bootstrap 🚀 + +Relay server for bootstrapping Peerbit applications + +This environment file contains a list of addresses you can initially connect to: + +Check the Peerbit client version you are using. E.g. for v4 use: + +``` +https://raw.githubusercontent.com/dao-xyz/peerbit-bootstrap/master/bootstrap-4.env +``` \ No newline at end of file diff --git a/bootstrap-4.env b/bootstrap-4.env new file mode 100644 index 0000000..08962e0 --- /dev/null +++ b/bootstrap-4.env @@ -0,0 +1,2 @@ +/dns4/2d19032a282979bcec368ede9dc7fc650c1d70ea.peerchecker.com/tcp/4003/wss/p2p/12D3KooWG9kxG57c14GAULuvyWANmduhV9yB8RKQ13MmJkckc6sM +/dns4/4699f82aabe2b02544a332f883395ff62f0cf452.peerchecker.com/tcp/4003/wss/p2p/12D3KooWSnkwgDSJo8MimspNXmeu87X9cdYaPiPYfz3TvkgKw76k \ No newline at end of file diff --git a/bootstrap.env b/bootstrap.env deleted file mode 100644 index 3dd15ac..0000000 --- a/bootstrap.env +++ /dev/null @@ -1 +0,0 @@ -870f0e4fec98bcd39d3c283499f1bd36f1af879e.peerchecker.com