-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
120 changed files
with
88 additions
and
1,931 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: Release | ||
on: | ||
# every morning | ||
# schedule: | ||
# - cron: '0 12 * * 1-4' | ||
push: | ||
branches: | ||
- prod | ||
|
||
# manual trigger | ||
workflow_dispatch: | ||
|
@@ -16,14 +16,14 @@ jobs: | |
changelog: ${{ steps.github_tag_action.outputs.changelog }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Bump version and push tag | ||
id: github_tag_action | ||
uses: mathieudutour/github-tag-action@v4.5 | ||
uses: mathieudutour/github-tag-action@v6.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
release_branches: .* | ||
release_branches: master | ||
|
||
create_release: | ||
name: Create Release | ||
|
@@ -32,29 +32,37 @@ jobs: | |
if: ${{ needs.bump_version.outputs.new_tag != null }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v1 | ||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
always-auth: true | ||
node-version: 10.16.1 | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: npm install | ||
|
||
- name: Build the IPFS bundle | ||
run: yarn build | ||
run: npm run build | ||
|
||
- name: Pin to IPFS | ||
- name: Pin to IPFS(PINATA) | ||
id: upload | ||
uses: anantaramdas/ipfs-pinata-deploy-action@39bbda1ce1fe24c69c6f57861b8038278d53688d | ||
with: | ||
pin-name: Uniswap ${{ needs.bump_version.outputs.new_tag }} | ||
pin-name: QuickSwap-main-interface ${{ needs.bump_version.outputs.new_tag }} | ||
path: './build' | ||
pinata-api-key: ${{ secrets.PINATA_API_KEY }} | ||
pinata-secret-api-key: ${{ secrets.PINATA_API_SECRET_KEY }} | ||
|
||
- name: Pin to Crust | ||
uses: crustio/[email protected] | ||
continue-on-error: true | ||
timeout-minutes: 2 | ||
with: | ||
cid: ${{ steps.upload.outputs.hash }} | ||
seeds: ${{ secrets.SUBSTRATE_SEEDS }} | ||
|
||
- name: Convert CIDv0 to CIDv1 | ||
id: convert_cidv0 | ||
uses: uniswap/[email protected] | ||
|
@@ -64,12 +72,19 @@ jobs: | |
- name: Update DNS with new IPFS hash | ||
env: | ||
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} | ||
RECORD_DOMAIN: 'uniswap.org' | ||
RECORD_NAME: '_dnslink.app' | ||
RECORD_DOMAIN: 'quickswap.exchange' | ||
RECORD_NAME: '_dnslink' | ||
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }} | ||
uses: textileio/cloudflare-update-dnslink@0fe7b7a1ffc865db3a4da9773f0f987447ad5848 | ||
with: | ||
cid: ${{ steps.upload.outputs.hash }} | ||
|
||
- name: Purge cloudflare cache | ||
uses: jakejarvis/cloudflare-purge-action@master | ||
env: | ||
# Zone is required by both authentication methods | ||
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE_ID }} | ||
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
|
@@ -84,22 +99,15 @@ jobs: | |
- CIDv0: `${{ steps.upload.outputs.hash }}` | ||
- CIDv1: `${{ steps.convert_cidv0.outputs.cidv1 }}` | ||
The latest release is always accessible via our alias to the Cloudflare IPFS gateway at [app.uniswap.org](https://app.uniswap.org). | ||
The latest release is always accessible via our alias to the Cloudflare IPFS gateway at [quickswap.exchange](https://quickswap.exchange). | ||
You can also access the Uniswap Interface directly from an IPFS gateway. | ||
The Uniswap interface uses [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) to store your settings. | ||
**Beware** that other sites you access via the _same_ IPFS gateway can read and modify your settings on the Uniswap interface without your permission. | ||
You can avoid this issue by using a subdomain IPFS gateway, or our alias to the latest release at [app.uniswap.org](https://app.uniswap.org). | ||
The preferred URLs below are safe to use to access this specific release. | ||
You can also access the QuickSwap directly from an IPFS gateway. | ||
**BEWARE**: The QuickSwap interface uses [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) to remember your settings, such as which tokens you have imported. | ||
**You should always use an IPFS gateway that enforces origin separation**, or our alias to the latest release at [quickswap.exchange](https://quickswap.exchange). | ||
Preferred URLs: | ||
IPFS gateways: | ||
- https://${{ steps.convert_cidv0.outputs.cidv1 }}.ipfs.dweb.link/ | ||
- https://${{ steps.convert_cidv0.outputs.cidv1 }}.ipfs.cf-ipfs.com/ | ||
- [ipfs://${{ steps.upload.outputs.hash }}/](ipfs://${{ steps.upload.outputs.hash }}/) | ||
Other IPFS gateways: | ||
- https://cloudflare-ipfs.com/ipfs/${{ steps.upload.outputs.hash }}/ | ||
- https://ipfs.infura.io/ipfs/${{ steps.upload.outputs.hash }}/ | ||
- https://ipfs.io/ipfs/${{ steps.upload.outputs.hash }}/ | ||
${{ needs.bump_version.outputs.changelog }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
# dependencies | ||
/node_modules | ||
|
||
/build | ||
|
||
# testing | ||
/coverage | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.