From a6687284d95fdfe0c9a7978cb520a003c873fcd5 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Sun, 28 Mar 2021 19:03:53 +0200 Subject: [PATCH] deploy to skynet --- .github/workflows/deploy-website.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy-website.yml diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml new file mode 100644 index 00000000..62d8e3f2 --- /dev/null +++ b/.github/workflows/deploy-website.yml @@ -0,0 +1,31 @@ +name: Deploy website to Skynet + +on: + push: + branches: + - website + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: 15.x + + - name: Install dependencies + run: npm i + working-directory: packages/website + + - name: "Build website" + run: npm run build + working-directory: packages/website + + - name: "Deploy to Skynet" + uses: kwypchlo/deploy-to-skynet-action@main + with: + upload-dir: packages/website/public + github-token: ${{ secrets.GITHUB_TOKEN }}