forked from Uniswap/interface
-
Notifications
You must be signed in to change notification settings - Fork 6
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
3 changed files
with
60 additions
and
60 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,32 +1,32 @@ | ||
name: Auto Upload Uniswap Exchange production build | ||
# name: Auto Upload Uniswap Exchange production build | ||
|
||
on: | ||
push: | ||
branches: | ||
- build-test | ||
# on: | ||
# push: | ||
# branches: | ||
# - build-test | ||
|
||
jobs: | ||
build_and_upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v1 | ||
- name: Create production build | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: New Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: build | ||
path: ./build/* | ||
# jobs: | ||
# build_and_upload: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v1 | ||
# - name: Create production build | ||
# run: | | ||
# npm install | ||
# npm run build | ||
# - name: Create Release | ||
# id: create_release | ||
# uses: actions/create-release@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
# with: | ||
# tag_name: ${{ github.ref }} | ||
# release_name: New Release ${{ github.ref }} | ||
# draft: false | ||
# prerelease: false | ||
# - name: Archive production artifacts | ||
# uses: actions/upload-artifact@v1 | ||
# with: | ||
# name: build | ||
# path: ./build/* |
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,31 +1,31 @@ | ||
name: 'Build and upload as release' | ||
# name: 'Prebuilt release' | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
# on: | ||
# push: | ||
# tags: | ||
# - 'v*' | ||
|
||
jobs: | ||
pre-release: | ||
name: 'Release' | ||
runs-on: 'ubuntu-latest' | ||
# jobs: | ||
# pre-release: | ||
# name: 'Release' | ||
# runs-on: 'ubuntu-latest' | ||
|
||
steps: | ||
# ... | ||
- name: Checkout repository | ||
uses: actions/checkout@v1 | ||
- name: Create production build | ||
run: | | ||
npm install | ||
npm run build | ||
- name: 'Build & test' | ||
run: | | ||
echo "done!" | ||
- uses: 'marvinpinto/action-automatic-releases@latest' | ||
with: | ||
repo_token: '${{ secrets.GITHUB_TOKEN }}' | ||
# automatic_release_tag: 'latest' | ||
prerelease: false | ||
title: 'Production Build' | ||
files: | | ||
./build/* | ||
# steps: | ||
# # ... | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v1 | ||
# - name: Create production build | ||
# run: | | ||
# npm install | ||
# npm run build | ||
# - name: 'Build & test' | ||
# run: | | ||
# echo "done!" | ||
# - uses: 'marvinpinto/action-automatic-releases@latest' | ||
# with: | ||
# repo_token: '${{ secrets.GITHUB_TOKEN }}' | ||
# # automatic_release_tag: 'latest' | ||
# prerelease: false | ||
# title: 'Production Build' | ||
# files: | | ||
# ./build/* |
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