diff --git a/.github/workflows/ActionDeploy.yml b/.github/workflows/ActionDeploy.yml index 75512a0..b32f20e 100644 --- a/.github/workflows/ActionDeploy.yml +++ b/.github/workflows/ActionDeploy.yml @@ -1,33 +1,32 @@ name: ActionDeploy -on : +on: push: branches: - master jobs: deployPages: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 - - name: Setup Node - uses: actions/setup-node@v1 - with: - node-version: '20.x' - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: '20.x' + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - - run: npm install -# - run: npm run test:unit -# - run: npm run test:e2e - - run: npm run build - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3.6.1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist + - run: npm config set strict-ssl false + - run: npm install + - run: npm run build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3.6.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist