-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Create GitHub Workflow to automatically deploy code #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Context: Everytime new code is merged into master, I need to manually deploy things using npm run deploy. In order to automate things, let's introduce a GitHub Workflow that will accomplish this for us! Solution: Introduce a GitHub Workflow that will build and deploy our static site. Fixes issue-183
@seanprashad
seanprashad
force-pushed
the
issue-183
branch
from
July 29, 2022 17:39
92b117e
to
a16dd3f
Compare
sprashad@home ~/projects/leetcode-patterns issue-183 act push
[GitHub pages/deploy] 🚀 Start image=ghcr.io/catthehacker/ubuntu:act-20.04
[GitHub pages/deploy] 🐳 docker pull image=ghcr.io/catthehacker/ubuntu:act-20.04 platform= username= forcePull=false
[GitHub pages/deploy] 🐳 docker create image=ghcr.io/catthehacker/ubuntu:act-20.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[GitHub pages/deploy] 🐳 docker run image=ghcr.io/catthehacker/ubuntu:act-20.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[GitHub pages/deploy] 🐳 docker exec cmd=[chown -R 0:0 /Users/sprashad/projects/leetcode-patterns] user=0 workdir=
[GitHub pages/deploy] ☁ git clone 'https://github.com/actions/setup-node' # ref=v3
[GitHub pages/deploy] ☁ git clone 'https://github.com/peaceiris/actions-gh-pages' # ref=v3
[GitHub pages/deploy] ⭐ Run Main actions/checkout@v3
[GitHub pages/deploy] 🐳 docker cp src=/Users/sprashad/projects/leetcode-patterns/. dst=/Users/sprashad/projects/leetcode-patterns
[GitHub pages/deploy] close /var/folders/_5/88x4j1vd0jvdbc1z253mk93m0000gn/T/act2408823602: file already closed
[GitHub pages/deploy] 🐳 docker exec cmd=[chown -R 0:0 /Users/sprashad/projects/leetcode-patterns] user=0 workdir=
[GitHub pages/deploy] ✅ Success - Main actions/checkout@v3
[GitHub pages/deploy] ⭐ Run Main Install Node
[GitHub pages/deploy] 🐳 docker cp src=/Users/sprashad/.cache/act/actions-setup-node@v3/ dst=/var/run/act/actions/actions-setup-node@v3/
[GitHub pages/deploy] close /var/folders/_5/88x4j1vd0jvdbc1z253mk93m0000gn/T/act1625835108: file already closed
[GitHub pages/deploy] 🐳 docker exec cmd=[chown -R 0:0 /var/run/act/actions/actions-setup-node@v3/] user=0 workdir=
[GitHub pages/deploy] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-node@v3/dist/setup/index.js] user= workdir=
[GitHub pages/deploy] 💬 ::debug::isExplicit:
[GitHub pages/deploy] 💬 ::debug::explicit? false
[GitHub pages/deploy] 💬 ::debug::isExplicit: 12.22.12
[GitHub pages/deploy] 💬 ::debug::explicit? true
[GitHub pages/deploy] 💬 ::debug::isExplicit: 16.16.0
[GitHub pages/deploy] 💬 ::debug::explicit? true
[GitHub pages/deploy] 💬 ::debug::evaluating 0 versions
[GitHub pages/deploy] 💬 ::debug::match not found
| Attempting to download 14.x...
[GitHub pages/deploy] 💬 ::debug::No manifest cached
[GitHub pages/deploy] 💬 ::debug::Getting manifest from actions/node-versions@main
[GitHub pages/deploy] 💬 ::debug::check 18.7.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 18.6.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 18.5.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 18.4.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 18.3.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 18.2.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 18.1.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 18.0.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.16.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.15.1 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.15.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.14.2 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.14.1 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.14.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.13.2 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.13.1 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.13.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.12.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.11.1 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.11.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.10.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.9.1 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.9.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.8.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.7.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.6.2 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.6.1 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.6.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.5.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.4.2 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.4.1 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.4.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.3.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.2.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.1.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 16.0.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::check 14.20.0 satisfies 14.x
[GitHub pages/deploy] 💬 ::debug::x64===x64 && darwin===linux
[GitHub pages/deploy] 💬 ::debug::x64===x64 && linux===linux
[GitHub pages/deploy] 💬 ::debug::matched 14.20.0
| Acquiring 14.20.0 - x64 from https://github.com/actions/node-versions/releases/download/14.20.0-2633808318/node-14.20.0-linux-x64.tar.gz
[GitHub pages/deploy] 💬 ::debug::Downloading https://github.com/actions/node-versions/releases/download/14.20.0-2633808318/node-14.20.0-linux-x64.tar.gz
[GitHub pages/deploy] 💬 ::debug::Destination /tmp/6c352187-7992-4b42-80be-9e7a5f8c8f9b
[GitHub pages/deploy] 💬 ::debug::download complete
| Extracting ...
[GitHub pages/deploy] 💬 ::debug::Checking tar --version
[GitHub pages/deploy] 💬 ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason.
| [command]/usr/bin/tar xz --strip 1 --warning=no-unknown-keyword -C /tmp/0b7ea4f5-398d-4424-9566-85e467b3f272 -f /tmp/6c352187-7992-4b42-80be-9e7a5f8c8f9b
| Adding to the cache ...
[GitHub pages/deploy] 💬 ::debug::Caching tool node 14.20.0 x64
[GitHub pages/deploy] 💬 ::debug::source dir: /tmp/0b7ea4f5-398d-4424-9566-85e467b3f272
[GitHub pages/deploy] 💬 ::debug::destination /opt/hostedtoolcache/node/14.20.0/x64
[GitHub pages/deploy] 💬 ::debug::finished caching tool
| Done
|
[GitHub pages/deploy] ⚙ ::set-output:: node-version=v14.20.0
[GitHub pages/deploy] ❓ ##[add-matcher]/run/act/actions/actions-setup-node@v3/.github/tsc.json
[GitHub pages/deploy] ❓ ##[add-matcher]/run/act/actions/actions-setup-node@v3/.github/eslint-stylish.json
[GitHub pages/deploy] ❓ ##[add-matcher]/run/act/actions/actions-setup-node@v3/.github/eslint-compact.json
[GitHub pages/deploy] ✅ Success - Main Install Node
[GitHub pages/deploy] ⭐ Run Main Install Packages
[GitHub pages/deploy] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2] user= workdir=
|
| > core-js@2.6.12 postinstall /Users/sprashad/projects/leetcode-patterns/node_modules/babel-runtime/node_modules/core-js
| > node -e "try{require('./postinstall')}catch(e){}"
|
|
| > ejs@2.7.4 postinstall /Users/sprashad/projects/leetcode-patterns/node_modules/ejs
| > node ./postinstall.js
|
|
| > fsevents@1.2.13 install /Users/sprashad/projects/leetcode-patterns/node_modules/webpack-dev-server/node_modules/fsevents
| > node install.js
|
|
| Skipping 'fsevents' build as platform linux is not supported
|
| > fsevents@1.2.13 install /Users/sprashad/projects/leetcode-patterns/node_modules/watchpack-chokidar2/node_modules/fsevents
| > node install.js
|
|
| Skipping 'fsevents' build as platform linux is not supported
|
| > core-js@3.8.3 postinstall /Users/sprashad/projects/leetcode-patterns/node_modules/core-js
| > node -e "try{require('./postinstall')}catch(e){}"
|
|
| > core-js-pure@3.8.3 postinstall /Users/sprashad/projects/leetcode-patterns/node_modules/core-js-pure
| > node -e "try{require('./postinstall')}catch(e){}"
|
|
| > husky@3.1.0 install /Users/sprashad/projects/leetcode-patterns/node_modules/husky
| > node husky install
|
| husky > Setting up git hooks
| CI detected, skipping Git hooks installation.
| husky > Done
|
| > husky@3.1.0 postinstall /Users/sprashad/projects/leetcode-patterns/node_modules/husky
| > opencollective-postinstall || exit 0
|
| added 2304 packages in 25.07s
[GitHub pages/deploy] ✅ Success - Main Install Packages
[GitHub pages/deploy] ⭐ Run Main Build
[GitHub pages/deploy] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir=
|
| > web@0.1.0 build /Users/sprashad/projects/leetcode-patterns
| > react-scripts build
|
| Creating an optimized production build...
| Browserslist: caniuse-lite is outdated. Please run:
| npx browserslist@latest --update-db
|
| Why you should do it regularly:
| https://github.com/browserslist/browserslist#browsers-data-updating
| Compiled successfully.
|
| File sizes after gzip:
|
| 104.41 KB build/static/js/2.db879790.chunk.js
| 23.03 KB build/static/css/2.5bd0ccc4.chunk.css
| 10.58 KB build/static/js/main.b5845114.chunk.js
| 783 B build/static/js/runtime-main.fc96d156.js
| 712 B build/static/css/main.fcf70d57.chunk.css
|
| The project was built assuming it is hosted at /leetcode-patterns/.
| You can control this with the homepage field in your package.json.
|
| The build folder is ready to be deployed.
|
| Find out more about deployment here:
|
| https://cra.link/deployment
|
[GitHub pages/deploy] ✅ Success - Main Build
[GitHub pages/deploy] ⭐ Run Post Install Node
[GitHub pages/deploy] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-node@v3/dist/cache-save/index.js] user= workdir=
[GitHub pages/deploy] 💬 ::debug::Caching for '' is not supported
[GitHub pages/deploy] ✅ Success - Post Install Node
[GitHub pages/deploy] 🏁 Job succeeded
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
Context: Everytime new code is merged into master, I need to manually
deploy things using npm run deploy. In order to automate things, let's
introduce a GitHub Workflow that will accomplish this for us!
Solution: Introduce a GitHub Workflow that will build and deploy our
static site.
Fixes #183