Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stratton <matt.stratton@hey.com>2020-11-24 17:47:18 +0300
committerMatt Stratton <matt.stratton@hey.com>2020-11-24 17:47:18 +0300
commiteb520b5d33e447e1452b69717c5edfb27a4cbb79 (patch)
treedc774b8d284fd6827b2baed8d512cdf2b05297da
parent9d261c4938ae9188351b2320636acad611d90443 (diff)
Add GH actions
-rw-r--r--.circleci/config.yml16
-rw-r--r--.github/release-drafter.yml37
-rw-r--r--.github/workflows/release.yml34
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