Skip to content

Commit

Permalink
Update tag to release
Browse files Browse the repository at this point in the history
  • Loading branch information
s-garg committed Feb 5, 2021
1 parent c2d5eb9 commit 060dca0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 23 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release
on:
workflow_dispatch:
inputs:
tag:
description: "Tag"
required: true
jobs:
main:
name: tag
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Yarn Install
run: |
yarn install
- name: Yarn Build
run: yarn build
- name: Dist
run: zip -r dist dist/
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag_name: ${{ github.event.inputs.tag }}
release_name: Release ${{ github.event.inputs.tag }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist.zip
asset_name: dist.zip
asset_content_type: application/zip
23 changes: 0 additions & 23 deletions .github/workflows/tag.yml

This file was deleted.

0 comments on commit 060dca0

Please sign in to comment.