Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Apr 17, 2021
1 parent bf142fb commit 62eed89
Showing 1 changed file with 40 additions and 0 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: Upload Release Asset

jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install -y make
- uses: actions/setup-node@v1
with:
node-version: "12"
- name: Checkout code
uses: actions/checkout@v2
- run: yarn install
- run: make
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Push ${{ github.ref }}
draft: false
prerelease: ${{ contains(github.ref, 'rc') }}
- 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: ./be.bastelstu.bottle.tar
asset_name: be.bastelstu.bottle.tar
asset_content_type: application/x-tar

0 comments on commit 62eed89

Please sign in to comment.