2020-05-21 06:31:05 +03:00
|
|
|
name: Daily Release
|
|
|
|
# every morning
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 12 * * *'
|
|
|
|
jobs:
|
|
|
|
create-release:
|
|
|
|
name: Create Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Bump version and push tag
|
|
|
|
id: bump_version
|
|
|
|
uses: mathieudutour/github-tag-action@v4
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
release_branches: .*
|
2020-05-21 21:01:43 +03:00
|
|
|
- name: Cancel if new tag is not generated
|
|
|
|
uses: andymckay/cancel-action@0.2
|
|
|
|
if: !startsWith(steps.bump_version.outputs.new_tag, 'v')
|
2020-05-21 06:31:05 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '12'
|
|
|
|
- name: Install yarn
|
|
|
|
run: npm install -g yarn
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn
|
|
|
|
- name: Build the IPFS bundle
|
|
|
|
run: yarn ipfs-build
|
2020-05-21 21:08:34 +03:00
|
|
|
- name: Pin to IPFS
|
|
|
|
uses: anantaramdas/ipfs-pinata-deploy-action@v1.5.2
|
2020-05-21 06:31:05 +03:00
|
|
|
with:
|
2020-05-21 21:08:34 +03:00
|
|
|
pin-name: Uniswap ${{ steps.bump_version.outputs.new_tag }}
|
|
|
|
path: './build'
|
|
|
|
pinata-api-key: ${{ secrets.PINATA_API_KEY }}
|
|
|
|
pinata-secret-api-key: ${{ secrets.PINATA_API_SECRET_KEY }}
|
2020-05-21 06:31:05 +03:00
|
|
|
- name: Create Release
|
|
|
|
id: create_release
|
|
|
|
uses: actions/create-release@v1.1.0
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
tag_name: ${{ steps.bump_version.outputs.new_tag }}
|
|
|
|
release_name: Release ${{ steps.bump_version.outputs.new_tag }}
|
|
|
|
draft: true
|
|
|
|
body: |
|
2020-05-21 21:01:43 +03:00
|
|
|
Release built from commit [`${{ github.sha }}`](https://github.com/Uniswap/uniswap-frontend/tree/${{ github.sha }})
|
2020-05-21 06:31:05 +03:00
|
|
|
|
|
|
|
The IPFS hash of the bundle is `${{ steps.upload.outputs.hash }}`
|
|
|
|
|
|
|
|
The following IPFS Gateways can be used to access the release:
|
|
|
|
- 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 }}/
|
|
|
|
|
|
|
|
Includes the following changes:
|
|
|
|
|
|
|
|
${{ steps.bump_version.outputs.changelog }}
|