From 57a2f918983de8836a1562eeb7372741cc1647f8 Mon Sep 17 00:00:00 2001 From: hrai <4055444+hrai@users.noreply.github.com> Date: Mon, 19 Oct 2020 16:22:23 +1100 Subject: [PATCH] Created release.yml (#40) --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..94c770b --- /dev/null +++ b/.github/workflows/release.yml @@ -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'