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
1 changed file
with
35 additions
and
34 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 |
---|---|---|
|
@@ -13,10 +13,10 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
- name: Create production build | ||
run: | | ||
npm install | ||
npm run build | ||
# - name: Create production build | ||
# run: | | ||
# npm install | ||
# npm run build | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/[email protected] | ||
|
@@ -25,35 +25,36 @@ jobs: | |
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: test text | ||
draft: false | ||
prerelease: false | ||
- name: Zip the build | ||
uses: thedoctor0/zip-release@master | ||
with: | ||
filename: 'build.zip' | ||
path: './build' | ||
exclusions: '*.git* /*node_modules/*' | ||
- uses: 'finnp/create-file-action@master' | ||
env: | ||
FILE_NAME: 'run.md' | ||
FILE_DATA: "#Run Uniswap\n1. Download build.zip and unzip\n2. In terminal navigate to that directory\n Run these two commands \n- yarn global add serve \n- serve -s build " | ||
- name: Upload Build | ||
id: upload-release-asset | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: build.zip | ||
asset_name: build.zip | ||
asset_content_type: application/zip | ||
- name: Upload setup | ||
id: upload-release-asset2 | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: run.md | ||
asset_name: run.md | ||
asset_content_type: application/zip | ||
# - name: Zip the build | ||
# uses: thedoctor0/zip-release@master | ||
# with: | ||
# filename: 'build.zip' | ||
# path: './build' | ||
# exclusions: '*.git* /*node_modules/*' | ||
# - uses: 'finnp/create-file-action@master' | ||
# env: | ||
# FILE_NAME: 'run.md' | ||
# FILE_DATA: "#Run Uniswap\n1. Download build.zip and unzip\n2. In terminal navigate to that directory\n Run these two commands \n- yarn global add serve \n- serve -s build " | ||
# - name: Upload Build | ||
# id: upload-release-asset | ||
# uses: actions/[email protected] | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
# asset_path: build.zip | ||
# asset_name: build.zip | ||
# asset_content_type: application/zip | ||
# - name: Upload setup | ||
# id: upload-release-asset2 | ||
# uses: actions/[email protected] | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
# asset_path: run.md | ||
# asset_name: run.md | ||
# asset_content_type: application/zip |