Skip to content

Commit

Permalink
ci(docs): moving docs to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusAndrade committed Sep 7, 2023
1 parent ca1fe05 commit 1f9bec5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,6 @@ jobs:
name: Publish New Version
command: yarn ci:publish

deploy-docs:
executor:
name: react-native/linux_js
node_version: '16.20'
working_directory: ~/app
steps:
- checkout-attach-workspace
- run:
name: Deploying new docs-version
no_output_timeout: 30m
command: |
git config --global user.email "${GH_EMAIL}@users.noreply.github.com"
git config --global user.name "${GH_NAME}"
echo "machine github.com login $GH_NAME password $GH_TOKEN" > ~/.netrc
cd website && yarn install && CUSTOM_COMMIT_MESSAGE="[skip ci]" GIT_USER=${GH_NAME} yarn deploy
workflows:
version: 2

Expand Down Expand Up @@ -129,8 +113,3 @@ workflows:
- SHELL_VARIABLES
requires:
- install-dependencies
- deploy-docs:
filters:
branches:
only:
- main
29 changes: 29 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

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

- run: cd website
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website
run: yarn build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

0 comments on commit 1f9bec5

Please sign in to comment.