Skip to content

Commit

Permalink
chore: added GitHub release action
Browse files Browse the repository at this point in the history
  • Loading branch information
tkorakas committed Feb 28, 2021
1 parent e423f5d commit 065c066
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
push:
tags:
- 'v*'
name: Build & Release
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Checkout code
uses: actions/checkout@v2
- name: Build project
run: |
yarn install
yarn build
zip -r artifact dist/
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifact.zip
asset_name: graphql-inspector-${{ steps.get_version.outputs.VERSION }}.zip
asset_content_type: application/zip
Binary file modified assets/icon128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icon16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icon48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions assets/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Chrome Extension (built with TypeScript + React)",
"description": "A boilerplate project to quickly build a Chrome extension using TypeScript and React (built using webpack).",
"name": "GraphQL Inspector",
"description": "Inspect GraphQL requests.",
"version": "1.0.0",
"minimum_chrome_version": "43",
"devtools_page": "devtools.html",
Expand Down

0 comments on commit 065c066

Please sign in to comment.