-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fa9f22
commit 6a95f76
Showing
1 changed file
with
68 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,101 @@ | ||
name: CI | ||
|
||
on: | ||
"on": | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
create: | ||
branches: | ||
- master | ||
|
||
- master | ||
jobs: | ||
updateKeyword: | ||
about: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Jaid/action-sync-node-meta | ||
uses: jaid/action-sync-node-meta@v1.4.0 | ||
with: | ||
direction: overwrite-github # default is overwrite-file | ||
githubToken: ${{ secrets.GITHUB }} | ||
|
||
ci: | ||
direction: overwrite-github | ||
githubToken: "${{ secrets.GITHUB }}" | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@v2 | ||
id: semantic | ||
with: | ||
# You can specify specifying version range for the extra plugins if you prefer. | ||
extra_plugins: | | ||
@semantic-release/changelog | ||
@semantic-release/npm | ||
@semantic-release/git | ||
@semantic-release/github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Auto Changog generator | ||
|
||
docs: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}" | ||
outputs: | ||
new_release_published: "${{ steps.semantic.outputs.new_release_published }}" | ||
new_release_version: "${{ steps.semantic.outputs.new_release_version }}" | ||
cdn: | ||
runs-on: ubuntu-latest | ||
needs: release | ||
if: needs.release.outputs.new_release_published == 'true' | ||
env: | ||
VERSION: "${{ needs.release.outputs.new_release_version }}" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: update documentation | ||
uses: CoCreate-app/CoCreate-docs@master | ||
|
||
|
||
cdn: | ||
- name: setup nodejs | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.15.4 | ||
- name: yarn install | ||
run: > | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > | ||
.npmrc | ||
yarn install | ||
- name: yarn build | ||
run: yarn build | ||
- name: upload bundle as version | ||
uses: CoCreate-app/CoCreate-s3@master | ||
with: | ||
aws-key-id: "${{ secrets.AWSACCESSKEYID }}" | ||
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}" | ||
bucket: testcrudbucket | ||
source: ./dist | ||
destination: "/kanban/${{env.VERSION}}" | ||
acl: public-read | ||
- name: upload bundle as latest | ||
uses: CoCreate-app/CoCreate-s3@master | ||
with: | ||
aws-key-id: "${{ secrets.AWSACCESSKEYID }}" | ||
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}" | ||
bucket: testcrudbucket | ||
source: ./dist | ||
destination: /kanban/latest | ||
acl: public-read | ||
|
||
dist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: upload cdn | ||
uses: CoCreate-app/CoCreate-s3@master | ||
with: | ||
aws-key-id: ${{ secrets.AWSACCESSKEYID }} | ||
aws-access-key: ${{ secrets.AWSSECERTACCESSKEY }} | ||
source: './dist/CoCreate-kanban.min.js' | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: setup nodejs | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.15.4 | ||
- name: yarn install | ||
run: > | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > | ||
.npmrc | ||
yarn install | ||
- run: yarn build | ||
- run: git add . | ||
- run: git config user.email "frank@cocreate.app" | ||
- run: git config user.name "frank pagan" | ||
- run: git commit --allow-empty -m "add dist bundle" | ||
- run: git pull origin master | ||
- run: git commit --allow-empty -m "add dist bundle" | ||
- run: git push origin master |