From ff537b1a052dcc0c4a5433439e904f0b7ca3de66 Mon Sep 17 00:00:00 2001 From: Artur Akmalov Date: Mon, 22 May 2023 01:36:53 +0500 Subject: [PATCH] again build --- .github/workflows/deploy.yml | 33 +++++++++++++++++++++++++++++++++ .github/workflows/node.js.yml | 25 ------------------------- 2 files changed, 33 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..4cd59a3 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,33 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main + # Review gh actions docs if you want to further define triggers, paths, etc + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on + +jobs: + deploy: + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + + - name: Install dependencies + run: yarn install --frozen-lockfile + - name: Build website + run: yarn build + + # Popular action to deploy to GitHub Pages: + # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + # Build output to publish to the `gh-pages` branch: + publish_dir: ./build diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index 1c28f7e..0000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Build - -on: - push: - -jobs: - build: - runs-on: ubuntu-latest - env: - ORGANIZATION_NAME: ${{ secrets.ORGANIZATION_NAME }} - REPOSITORY_NAME: ${{ secrets.REPOSITORY_NAME }} - SITE_TITLE: ${{ secrets.SITE_TITLE }} - SITE_URL: ${{ secrets.SITE_URL }} - - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: "18" - cache: "npm" - - run: npm ci - # - run: npm run typecheck - # - run: npm run format:check - - run: npm run build - - run: GIT_USER=akmalovaa npm run deploy \ No newline at end of file