Commit ceea563a authored by Moody Salem's avatar Moody Salem

Try again, fix upload hash output variable, temporarily create release on every push

parent 992c5a8e
name: Daily Release name: Daily Release
# every morning # every morning
#on:
# schedule:
# - cron: '0 12 * * *'
on: on:
schedule: push:
- cron: '0 12 * * *' branches:
- v2
jobs: jobs:
create-release: create-release:
name: Create Release name: Create Release
...@@ -10,31 +14,41 @@ jobs: ...@@ -10,31 +14,41 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Bump version and push tag - name: Bump version and push tag
id: bump_version id: bump_version
uses: mathieudutour/github-tag-action@v4 uses: mathieudutour/github-tag-action@v4
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: .* release_branches: .*
- name: Cancel this build if no new commits - name: Cancel this build if no new commits
if: ${{ steps.bump_version.outputs.new_tag == null }}
uses: andymckay/cancel-action@0.2 uses: andymckay/cancel-action@0.2
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: '12' node-version: '12'
- name: Install yarn - name: Install yarn
run: npm install -g yarn run: npm install -g yarn
- name: Install dependencies - name: Install dependencies
run: yarn run: yarn
- name: Build the IPFS bundle - name: Build the IPFS bundle
run: yarn ipfs-build run: yarn ipfs-build
- name: Pin to IPFS - name: Pin to IPFS
id: upload
uses: anantaramdas/ipfs-pinata-deploy-action@v1.5.2 uses: anantaramdas/ipfs-pinata-deploy-action@v1.5.2
with: with:
pin-name: Uniswap ${{ steps.bump_version.outputs.new_tag }} pin-name: Uniswap ${{ steps.bump_version.outputs.new_tag }}
path: './build' path: './build'
pinata-api-key: ${{ secrets.PINATA_API_KEY }} pinata-api-key: ${{ secrets.PINATA_API_KEY }}
pinata-secret-api-key: ${{ secrets.PINATA_API_SECRET_KEY }} pinata-secret-api-key: ${{ secrets.PINATA_API_SECRET_KEY }}
- name: Create Release
- name: Create GitHub Release
id: create_release id: create_release
uses: actions/create-release@v1.1.0 uses: actions/create-release@v1.1.0
env: env:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment