again build

This commit is contained in:
Artur Akmalov
2023-05-22 01:36:53 +05:00
parent d460e1b8f1
commit ff537b1a05
2 changed files with 33 additions and 25 deletions

33
.github/workflows/deploy.yml vendored Normal file
View File

@@ -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

View File

@@ -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