Skip to content

Commit

Permalink
Created release.yml (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrai committed Oct 19, 2020
1 parent 5e456d5 commit 57a2f91
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copied from https://github.com/notlmn/browser-extension-template/blob/master/.github/workflows/release.yml
name: Release

on:
workflow_dispatch:
# You can manually trigger a deployment on github.com
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
schedule:
- cron: '30 10 * * 1' #https://crontab.guru/#30_10_*_*_1

jobs:
Version:
outputs:
created: ${{ steps.daily-version.outputs.created }}
version: ${{ steps.daily-version.outputs.version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 20
- run: npm install
- run: npm test
- uses: fregante/daily-version-action@v1
name: Create tag if necessary
id: daily-version
- uses: notlmn/release-with-changelog@v3
if: steps.daily-version.outputs.created
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude: '^Meta|^Document|^Readme|^Lint'

0 comments on commit 57a2f91

Please sign in to comment.