Skip to content

Commit

Permalink
Merge pull request #1400 from oasisprotocol/lw/staging-instructions
Browse files Browse the repository at this point in the history
Update deploy links and staging to use build-preview
  • Loading branch information
lukaw3d authored Apr 20, 2023
2 parents 0f54256 + b2d8def commit 0cb091a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 20 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

## Deploys

- `stable` branch: <https://wallet.oasisprotocol.org>
- `master` branch: <https://wallet.stg.oasisprotocol.org>
- `stable` branch: <https://wallet.oasis.io>
- `master` branch: <https://wallet.stg.oasis.io>

## Features

Expand Down
22 changes: 7 additions & 15 deletions docs/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,17 @@

Staging:
- checkout `master` branch
- build
- deploy to <https://wallet.stg.oasisprotocol.org/>
- `yarn install --frozen-lockfile && yarn build-preview`
- deploy to <https://wallet.stg.oasis.io/>

Production:
- ensure <https://wallet.stg.oasisprotocol.org/> works
- ensure <https://wallet.stg.oasis.io/> works
- especially features related to changes
- look at CSP errors (expect one error: blocked `eval` in `inquire`)
- see the footer for what commit is deployed
- update `stable` branch to that commit
- build
- deploy to <https://wallet.oasisprotocol.org/>

### Build

```sh
yarn install --frozen-lockfile
yarn build # uses oasisscan backend
# or REACT_APP_BACKEND=oasismonitor yarn build
```
- `yarn install --frozen-lockfile && yarn build`
- deploy to <https://wallet.oasis.io/>

### Deploy

Expand All @@ -36,8 +28,8 @@ Update Content-Security-Policy header.
yarn print-csp

# See old deployed CSP
curl --head https://wallet.stg.oasisprotocol.org/ -s | grep content-security-policy
curl --head https://wallet.oasisprotocol.org/ -s | grep content-security-policy
curl --head https://wallet.stg.oasis.io/ -s | grep content-security-policy
curl --head https://wallet.oasis.io/ -s | grep content-security-policy
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ exports[`<Footer /> should render mobile version of footer 1`] = `
>
<a
class="c2"
href="https://wallet.oasisprotocol.org/t-c"
href="https://wallet.oasis.io/t-c"
rel="noopener noreferrer"
target="_blank"
>
Expand Down
8 changes: 6 additions & 2 deletions src/app/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import { mobileFooterNavigationHeight } from '../../../styles/theme/elementSizes
const githubLink = 'https://github.com/oasisprotocol/oasis-wallet-web/'
const githubReleaseLink = (tag: string) => `${githubLink}releases/tag/${tag}`

function NoReleaseLink() {
return <>-</>
}

export const Footer = memo(() => {
const isAccountOpen = useSelector(selectIsOpen)
const isMobile = React.useContext(ResponsiveContext) === 'small'
Expand Down Expand Up @@ -58,7 +62,7 @@ export const Footer = memo(() => {
t={t}
components={{
TermsLink: (
<Anchor href="https://wallet.oasisprotocol.org/t-c" target="_blank" rel="noopener noreferrer" />
<Anchor href="https://wallet.oasis.io/t-c" target="_blank" rel="noopener noreferrer" />
),
}}
defaults="<TermsLink>Terms and Conditions</TermsLink>"
Expand All @@ -78,7 +82,7 @@ export const Footer = memo(() => {
rel="noopener noreferrer"
/>
) : (
<></>
<NoReleaseLink />
),
CommitLink: (
<Anchor
Expand Down

0 comments on commit 0cb091a

Please sign in to comment.