Skip to content

Commit

Permalink
update custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlapham committed Dec 11, 2019
1 parent 1ccb8af commit 1961eb9
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 60 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/build_and_release.yaml
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/*
56 changes: 28 additions & 28 deletions .github/workflows/other_release.yaml
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/*
4 changes: 2 additions & 2 deletions .github/workflows/total.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
on:
push:
# Sequence of patterns matched against refs/tags
branches:
- 'build-test'
tags:
- 'v*'

name: Upload Release Asset

Expand Down

0 comments on commit 1961eb9

Please sign in to comment.