Skip to content
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

ci: release web to vercel #2193

Merged
merged 1 commit into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,15 @@ jobs:
name: app
path: resources

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Copy built app to a vercel prod deploy folder
run: mkdir -p vercel-prod/vercel-static/athens && cp -R resources/public/. vercel-prod/vercel-static/athens/

- uses: amondnet/vercel-action@v20
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./resources/public
force_orphan: true
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
vercel-args: './vercel-prod/ --prod'


release-electron:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"storybook-dark-mode": "^1.0.8",
"tsconfig-paths-webpack-plugin": "^3.5.1",
"typescript": "^4.3.5",
"vercel": "^23.1.2",
"vercel": "^24.2.3",
"xvfb-maybe": "^0.2.1"
},
"resolutions-comments": {
Expand Down
7 changes: 7 additions & 0 deletions script/vercel-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ set -euxo pipefail
# Build command : yarn vercel:build
# Output directory: vercel-static
# Install command : yarn vercel:install
#
# In Vercel -> Project Settings -> Git
# Production branch: dummy-vercel-main
# This is a dummy branch that we do not push builds to.
# Instead the `release-web` github actions job manually builds and deploys a prod build when needed.
# The build settings above are still used for the prod build though, and the
# vercel-prod/package.json file is meant to provide noop scripts for it.

# See https://vercel.com/docs/concepts/deployments/build-step#build-image for custom setup instructions.

Expand Down
7 changes: 7 additions & 0 deletions vercel-prod/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"description": "dummy package.json for the release-web github actions job",
"scripts": {
"vercel:install": "echo skipping install",
"vercel:build": "echo skipping build"
}
}
64 changes: 35 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4374,34 +4374,40 @@
dependencies:
"@types/node" "*"

"@vercel/build-utils@2.12.2":
version "2.12.2"
resolved "https://registry.yarnpkg.com/@vercel/build-utils/-/build-utils-2.12.2.tgz#285a3bb0b78864fb6f44478257bd275c57aa8651"
integrity sha512-KbSgG2ZCVXhUsdbnpv6gC7buygd31jaKiKhrd4Lzv1NwjnoeDZAXlm4hzvSPYHVtCY2jirKJWP2rFtMW8iAh9g==
"@vercel/build-utils@3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@vercel/build-utils/-/build-utils-3.0.1.tgz#6758a95d230e7d1b95ca7b73bba07e6d1f534a38"
integrity sha512-uW61uzc/la5uQNaTL8QJThSQkrbMwKFt7JUCXwyvyW4PfdN6GgYMYEMgTIXrG7Dows3pSOD7A9K0Hl5z8KvOzQ==

"@vercel/go@1.2.3":
version "1.2.3"
resolved "https://registry.yarnpkg.com/@vercel/go/-/go-1.2.3.tgz#6f2bdba5681f9d64ee17060c5d63589e2d45e2d8"
integrity sha512-BZCHRz43Qfr0DwZlZQCcofR+3cr+H+HK72/ZPkZy1Uq0NYjJMlmZ3ahuMgvJxT9lfC1RA6eOEUlUsZ+gqKcMCg==
"@vercel/go@1.4.2":
version "1.4.2"
resolved "https://registry.yarnpkg.com/@vercel/go/-/go-1.4.2.tgz#4c58a55a6b0f825951d8d0d2b107518a24bf909e"
integrity sha512-LUro28q/FWX6T2bQY244X7la8v4ZQs6CGBhJB0qUFU5Ft8f32sViDVkomd7Q/PuiJxTh6e/W8RYGrl0kApKDkg==

"@vercel/[email protected]":
version "1.12.1"
resolved "https://registry.yarnpkg.com/@vercel/node/-/node-1.12.1.tgz#15f42f64690f904f8a52a387123ce0958657060f"
integrity sha512-NcawIY05BvVkWlsowaxF2hl/hJg475U8JvT2FnGykFPMx31q1/FtqyTw/awSrKfOSRXR0InrbEIDIelmS9NzPA==
"@vercel/[email protected]":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@vercel/node-bridge/-/node-bridge-2.2.1.tgz#539b1ba65e3f88f01b71faf1b9dd7758c52a3d74"
integrity sha512-GJdBio0nKyxvFwfLcj6CMp2s22d5V6K9tmhmHkQcaiFwdKWK/Pa7jngiO84a09fvX+DFaOtpalJuxQa5LAJ9xQ==

"@vercel/[email protected]":
version "1.15.2"
resolved "https://registry.yarnpkg.com/@vercel/node/-/node-1.15.2.tgz#00886055714187b24f334ab5a1229698b451bc40"
integrity sha512-paHKi2u75/G5g6My/BTXc9uQlMnUxEHSedQepWEzb6d0VNclGAMbIb8KMjBP8/eZ//5qKPuVM3hgHjC3+pShkw==
dependencies:
"@types/node" "*"
"@vercel/node-bridge" "2.2.1"
ts-node "8.9.1"
typescript "4.3.4"

"@vercel/python@2.0.5":
version "2.0.5"
resolved "https://registry.yarnpkg.com/@vercel/python/-/python-2.0.5.tgz#76c09280febfac863c39651edffafbb0838a1df8"
integrity sha512-WCSTTw6He2COaSBiGDk2q5Q1ue+z5usRZcvUHCpsK6KvNkkV/PrY8JT73XQysMWKiXh6yQy19IUFAOqK/xwhig==
"@vercel/python@2.3.2":
version "2.3.2"
resolved "https://registry.yarnpkg.com/@vercel/python/-/python-2.3.2.tgz#158f4cfaa61b1c5cfe9aae5157a7f036dd0ecbb1"
integrity sha512-qLNyiNf9bauz/GoY/GaOp/GjCx2olJQ3Uyd3EaP99aQC2jx9uCtofMXh4s9JAYgG8+qOr3M7AEhFbNjJza7wrQ==

"@vercel/ruby@1.2.7":
version "1.2.7"
resolved "https://registry.yarnpkg.com/@vercel/ruby/-/ruby-1.2.7.tgz#516d1c45f4961619338f3d3bb518ee43b863a5da"
integrity sha512-ZG2VxMHHSKocL57UWsfNc9UsblwYGm55/ujqGIBnkNUURnRgtUrwtWlEts1eJ4VHD754Lc/0/R1pfJXoN5SbRw==
"@vercel/ruby@1.3.5":
version "1.3.5"
resolved "https://registry.yarnpkg.com/@vercel/ruby/-/ruby-1.3.5.tgz#7b6e7170e3b3d86e83456633af1b0d5c5d0d39a3"
integrity sha512-GCylepOL4seK8ox/Q5VM4fCkTLK5dzXy1/iI6IG/6DwgrKgbP/Ojy08YeUKaBcPLXLJgZ0nx+NBIbqo5L5malw==

"@webassemblyjs/[email protected]":
version "1.9.0"
Expand Down Expand Up @@ -14694,16 +14700,16 @@ vary@^1, vary@~1.1.2:
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=

vercel@^23.1.2:
version "23.1.2"
resolved "https://registry.yarnpkg.com/vercel/-/vercel-23.1.2.tgz#7f36772970c7c56f10de89983f03b3c0c72d294e"
integrity sha512-uS1k7wuXI6hbxiW+kn9vdAWL0bBi4jjVxc7Jwp8NhJjcRuzlydtt3gUEnhnC9AOIKQ4LxoAgmg50lSyYkrC8Hg==
vercel@^24.2.3:
version "24.2.3"
resolved "https://registry.yarnpkg.com/vercel/-/vercel-24.2.3.tgz#6a065d7486755f24717d23e47e235ab0b9342021"
integrity sha512-ezriIQotWuSxZ7aqcEuB1+lKi0MHp8/BEvvaOmzf27fP7+mLVBVEdPc8bzlpw548wk/l8wBRhvRDzc1kpuDnRQ==
dependencies:
"@vercel/build-utils" "2.12.2"
"@vercel/go" "1.2.3"
"@vercel/node" "1.12.1"
"@vercel/python" "2.0.5"
"@vercel/ruby" "1.2.7"
"@vercel/build-utils" "3.0.1"
"@vercel/go" "1.4.2"
"@vercel/node" "1.15.2"
"@vercel/python" "2.3.2"
"@vercel/ruby" "1.3.5"
update-notifier "4.1.0"

verror@^1.10.0:
Expand Down