diff options
-rw-r--r-- | .circleci/config.yml | 16 | ||||
-rw-r--r-- | .github/release-drafter.yml | 37 | ||||
-rw-r--r-- | .github/workflows/release.yml | 34 |
3 files changed, 79 insertions, 8 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index d605421..03485e5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -178,14 +178,14 @@ workflows: - test-grey-row-jumbo: requires: - build - deploy: - jobs: - - create-release: - filters: - tags: - only: /^\d+\.\d+\.\d+$/ - branches: - ignore: /.*/ + # deploy: + # jobs: + # - create-release: + # filters: + # tags: + # only: /^\d+\.\d+\.\d+$/ + # branches: + # ignore: /.*/ diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..917b32c --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,37 @@ +name-template: '$RESOLVED_VERSION'
+tag-template: '$RESOLVED_VERSION'
+categories:
+ - title: '🚀 Features'
+ labels:
+ - 'feature'
+ - 'enhancement'
+ - title: '🐛 Bug Fixes'
+ labels:
+ - 'fix'
+ - 'bugfix'
+ - 'bug'
+ - title: '🧰 Maintenance'
+ labels:
+ - 'chore'
+ - 'dependencies'
+change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
+change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
+version-resolver:
+ major:
+ labels:
+ - 'major'
+ minor:
+ labels:
+ - 'minor'
+ patch:
+ labels:
+ - 'patch'
+ default: patch
+template: |
+ ## Changes
+
+ $CHANGES
+
+ ### Contributors
+
+ $CONTRIBUTORS
\ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ae6cb2e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release Drafter
+
+on:
+ push:
+ # branches to consider in the event; optional, defaults to all
+ branches:
+ - $default-branch
+
+jobs:
+ update_release_draft:
+ runs-on: ubuntu-latest
+ steps:
+ # Drafts your next Release notes as Pull Requests are merged into "master"
+ - uses: release-drafter/release-drafter@v5
+ with:
+ # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
+ # config-name: my-config.yml
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ build:
+ name: Publish zip file
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Build
+ run: |
+ zip -r castanet-${{ steps.update_release_draft.outputs.tag }}.zip . -x \*.git\* \*exampleSite\* appveyor.yml \*.circleci\* \*tests\* \*bin\* \*build\* \*release\* config.codekit3 \*node_modules\* gulpfile.js netlify.toml package.json STYLE.md *\node_modules\* \*test\*
+ - name: Upload zip file to release
+ uses: svenstaro/upload-release-action@v2
+ with:
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
+ file: castanet-${{ steps.update_release_draft.outputs.tag }}.zip
+ tag: ${{ steps.update_release_draft.outputs.tag }}
+ overwrite: true
|