Skip to content

Commit d5bb296

Browse files
jk0facebook-github-bot
authored andcommitted
Convert the CircleCI workflow to a GitHub Actions workflow (#861)
Summary: This pull request converts the CircleCI workflows to GitHub actions workflows. [Github Actions Importer](https://github.com/github/gh-actions-importer) was used to convert the workflows initially, then I edited them manually to correct errors in translation. **Issues** 1. _facebook/idb/build_and_deploy -> deploy-website_ ``` Error: Running "git push" command failed. Does the GitHub user account you are using have push access to the repository? ``` This is due to the fact that `${{ secrets.GITHUB_TOKEN }}` is either undefined or doesn't have the appropriate permissions or scopes enabled to access the repository. ## How did you test this change? I tested these changes in a [forked repo](https://github.com/robandpdx-org/idb/actions/runs/7717454971). https://fburl.com/workplace/f6mz6tmw Pull Request resolved: #861 Reviewed By: Nekitosss Differential Revision: D56620612 Pulled By: jbardini fbshipit-source-id: 00b543d0019df4b59324d96582cce321a82c331a
1 parent 69a2f58 commit d5bb296

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: facebook/idb/build_and_deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
deploy-website:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/[email protected]
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: 16.14.0
14+
- name: Deploying to GitHub Pages
15+
run: |
16+
git config --global user.email "[email protected]"
17+
git config --global user.name "Website Deployment Script"
18+
echo "machine github.com login docusaurus-bot password ${{ secrets.GITHUB_TOKEN }}" > ~/.netrc
19+
echo "Deploying website..."
20+
cd website && yarn install && GIT_USER=docusaurus-bot USE_SSH=false yarn deploy

0 commit comments

Comments
 (0)