Skip to content

Commit

Permalink
add action to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
x1ah committed Nov 17, 2020
1 parent d3c4af3 commit a5b6e0d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 21 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
tags:
- 'v*'
paths:
- 'workflow/**'

jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- 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: workflow/alfred-cron.alfredworkflow
asset_name: alfred-cron.alfredworkflow
asset_content_type: application/zip
21 changes: 0 additions & 21 deletions cmd/cron/main.go

This file was deleted.

Binary file removed icon.png
Binary file not shown.
Binary file added workflow/alfred-cron.alfredworkflow
Binary file not shown.

0 comments on commit a5b6e0d

Please sign in to comment.