From 40408f70e4a7731c8f91f38412efdcdbbd04e690 Mon Sep 17 00:00:00 2001 From: Maria Date: Mon, 5 Aug 2024 18:17:20 +0100 Subject: [PATCH] :green_heart: Fix CD --- .github/workflows/cd.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..d9995cc --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,34 @@ +name: cd + +on: [push, pull_request] + +jobs: + cd: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + node: [18] + + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Setup node env + uses: actions/setup-node@v4 + + with: + node-version: ${{ matrix.node }} + + - name: Install dependencies + run: npm + + - name: Generate + run: npm run generate + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist \ No newline at end of file