Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable GitHub Actions to replace Travis CI #5638

Merged
merged 112 commits into from Sep 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
05cc3a5
first take
alexweissman Sep 3, 2017
29619aa
Fix urls to images
alexweissman Sep 3, 2017
0257a66
fix theme examples
alexweissman Sep 3, 2017
7d07013
Fix tagging examples
alexweissman Sep 3, 2017
3828640
Fix i18n examples
alexweissman Sep 3, 2017
94c5c3a
begin integrating the "old options" page
alexweissman Sep 3, 2017
bb1fda2
integrate announcements and backwards-compat
alexweissman Sep 4, 2017
748eff7
finish advanced chapter
alexweissman Sep 4, 2017
cdd620d
Fix links
alexweissman Sep 4, 2017
7ca4250
fix more links
alexweissman Sep 4, 2017
08f6165
fix more links
alexweissman Sep 6, 2017
50fa14c
GA code
alexweissman Sep 6, 2017
b9ec2ed
update README
alexweissman Sep 7, 2017
a05a26b
author link
alexweissman Sep 8, 2017
ec6901d
"getting help" page
alexweissman Sep 8, 2017
af5c13f
events docs
alexweissman Sep 8, 2017
4fc911f
rename "programmatic control" to "methods and events"
alexweissman Sep 8, 2017
a2482bd
Addresses #5004.
alexweissman Sep 11, 2017
fa1d125
Addresses #4583
alexweissman Sep 11, 2017
553f6aa
Add "common problems" section and address #4217
alexweissman Sep 11, 2017
da40dfb
Update license for docs, and add links to footer.
alexweissman Sep 11, 2017
7b3e8c8
Add link to NextGI
alexweissman Sep 11, 2017
46f6f76
point back to original GA property
alexweissman Sep 11, 2017
6657444
document programmatically adding options
alexweissman Sep 11, 2017
7fd65b3
expand the 'programmatic control' chapter
alexweissman Sep 11, 2017
94b14f3
clarify some basic JS and jQuery concepts
alexweissman Sep 11, 2017
c9bd2ad
Addresses #4835
alexweissman Sep 12, 2017
361f7fc
Reorganize and expand AJAX documentation
alexweissman Sep 12, 2017
275ae05
Clarify #4244 and retrieval of selected items populated via AJAX
alexweissman Sep 12, 2017
3569204
Fix styling of multi-selects
alexweissman Sep 13, 2017
d2655a8
Clarify use of matcher
alexweissman Sep 13, 2017
b61b7f4
Improve matcher example (see #4668)
alexweissman Sep 13, 2017
12b757a
Add name attribute to examples (see #4592)
alexweissman Sep 14, 2017
2a7ddab
Suggestions as per #4387.
alexweissman Sep 14, 2017
2b8f165
document pagination (#3308, #5006)
alexweissman Sep 14, 2017
139fb04
Improvements to event docs (see #2)
alexweissman Sep 22, 2017
5a9c294
add common problem (see #5048)
alexweissman Sep 22, 2017
0f75431
fix links
alexweissman Sep 22, 2017
b81e62a
update for 4.0.4
alexweissman Sep 24, 2017
3e06ef4
Update docs.md
kochnev Sep 28, 2017
a929ef9
Merge pull request #4 from kochnev/patch-1
alexweissman Oct 11, 2017
5fc339b
explain server-side filtering
alexweissman Oct 11, 2017
94b06e6
Merge branch 'develop' of https://github.com/select2/docs into develop
alexweissman Oct 11, 2017
e04675a
selecting multiple items programmatically (#5068)
alexweissman Oct 12, 2017
444906b
Add Bower to installation docs (#5047)
alexweissman Oct 12, 2017
93c1639
clarify use of placeholders (#4660)
alexweissman Oct 12, 2017
7eef84e
clarify user-defined widths (#5078)
alexweissman Oct 12, 2017
b746ddb
explain the need to unbind events after calling `destroy`
alexweissman Oct 12, 2017
fffbad9
link to v3 docs
alexweissman Oct 12, 2017
e6bd9d7
document disabling search for multi-select (#4797)
alexweissman Oct 12, 2017
e382d97
link to new forum, and add jsbin template
alexweissman Oct 23, 2017
27a29f2
Update docs.md
anhphamt Oct 24, 2017
d9703c4
Merge pull request #7 from anhphamt/patch-1
alexweissman Oct 24, 2017
71b74d9
update jsbin template
alexweissman Nov 5, 2017
ee6bb70
Added missed commas
zomberg Nov 11, 2017
33f5500
update CDN version in installation instructions
alexweissman Nov 18, 2017
944dfd8
Merge branch 'patch-1' of https://github.com/zomberg/docs into develop
alexweissman Nov 19, 2017
61ba192
update Select2 version
alexweissman Dec 8, 2017
26c8b9f
Fix minor spelling error in events page
jimmielin Dec 14, 2017
83631cd
Better title and description
jonathanberger Jan 22, 2018
69098b1
Merge pull request #14 from jonathanberger/patch-2
kevin-brown Mar 25, 2018
ce57141
Fixed typo (#21)
emmanuelballery Jun 2, 2018
591e6a4
Document dropdownCss and containerCss (#20)
tomm1996 Jun 2, 2018
663a7d1
Make it clearer that "minimumInputLength" should be set as a Select2 …
hartator Sep 5, 2018
8fc2e93
Improve language for required properties (#13)
jonathanberger Sep 5, 2018
3b44ae2
Add info about the new `clear` event (#3)
gronostajo Sep 5, 2018
165f945
Update docs.md
pedrofurtado Sep 5, 2018
9ffcc26
Add migration rename information (#22)
ellenhutchings Sep 11, 2018
f546886
Update docs.md
pedrofurtado Sep 15, 2018
d86894d
Added documentation example for BS3 modal shown event binding (#12)
niftylettuce Sep 17, 2018
3c26bd0
Update docs.md (#29)
geoffroya Apr 28, 2019
a1bd03c
Bump versions for Select2 4.0.6 release
kevin-brown Apr 28, 2019
8020724
Bump versions for Select2 4.0.7 release
kevin-brown May 7, 2019
ad0451d
Fix a typo (#34)
pbek Jun 4, 2019
03e1b69
Merge branch 'master' into develop
kevin-brown Jul 10, 2019
1c394a4
Fix XSS issue in templating example
kevin-brown Jul 10, 2019
1f79acb
Fix XSS issue in AJAX example
kevin-brown Jul 10, 2019
dd90704
Bump versions for Select2 4.0.8 release
kevin-brown Jul 21, 2019
6f88568
Merge pull request #37 from select2/develop
kevin-brown Jul 21, 2019
330ae4a
Updated the docs to add data-disabled to be added as an info - not al…
ntantri Aug 9, 2019
ed4b780
Merge pull request #1 from tan31989/fix_data_properties_doc
ntantri Aug 9, 2019
f8ded17
Merge pull request #39 from MediaIQ/fix_data_properties_doc
kevin-brown Aug 22, 2019
3f8c3c5
Bump versions for Select2 4.0.9 release
kevin-brown Aug 22, 2019
bdeb907
Merge pull request #40 from select2/develop
kevin-brown Aug 22, 2019
7f0800c
Bump versions for 4.0.10 release
kevin-brown Aug 29, 2019
d6acc57
Merge pull request #42 from select2/develop
kevin-brown Aug 29, 2019
f025d67
Added basic GitHub Actions workflow to build the project
kevin-brown Sep 10, 2019
6758bb5
Fixed GitHub Actions syntax
kevin-brown Sep 10, 2019
ffd98a4
Add steps for linting, minification, start deployments
kevin-brown Sep 10, 2019
91838fe
Add deploying to GPM and NPM
kevin-brown Sep 11, 2019
8b9a99d
Enable dry runs for publishing
kevin-brown Sep 11, 2019
e0560c7
Move documentation to the docs folder
kevin-brown Sep 11, 2019
82c51a3
Remove dry run from publish
kevin-brown Sep 12, 2019
748d279
Extract NPM deployment out to different workflow
kevin-brown Sep 12, 2019
7b1367c
Switch to only deploying when pushing to develop/master
kevin-brown Sep 12, 2019
dafddb7
Made NPM deployment step consistent with GPM
kevin-brown Sep 12, 2019
891993e
Renamed deploy.yml to package-deploy.yml
kevin-brown Sep 12, 2019
fe208f1
Added workflow for deploying documentation
kevin-brown Sep 12, 2019
3606801
Remove old documentation
kevin-brown Sep 12, 2019
b4c3ecc
Merge branch 'docs-master' into merge-docs
kevin-brown Sep 11, 2019
8cb7e33
Fix copying directory during deployment
kevin-brown Sep 12, 2019
c891d2e
Deploy docs to the production location
kevin-brown Sep 12, 2019
5e32678
Proper syntax for copying dir contents
kevin-brown Sep 12, 2019
b3c6d3e
Remove trailing slash on destination directory
kevin-brown Sep 12, 2019
29d01a0
Move docs into root directory before copying
kevin-brown Sep 12, 2019
bff3a77
Try using strip.components with drone-scp
kevin-brown Sep 12, 2019
dea726d
Use new syntax for args
kevin-brown Sep 12, 2019
c95ed17
Switch to using rsync
kevin-brown Sep 12, 2019
120065e
SSH_PUBLIC_KEY is required but unused
kevin-brown Sep 12, 2019
a31d56d
HOST_IP is also required but unused
kevin-brown Sep 12, 2019
e1d64e9
HOST_FINGERPRINT is also required but unused
kevin-brown Sep 12, 2019
7688be5
Only deploy docs on releases
kevin-brown Sep 12, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .github/workflows/docs-deploy.yml
@@ -0,0 +1,21 @@
name: Documentation Deployment

on: release

jobs:
grav:
name: Deploy Grav
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Copy to documentation server
uses: maxheld83/rsync@v0.1.0
env:
USERNAME: ${{ secrets.DOCUMENTATION_SSH_USERNAME }}
SSH_PRIVATE_KEY: ${{ secrets.DOCUMENTATION_SSH_KEY }}
HOST_NAME: ${{ secrets.DOCUMENTATION_SSH_HOST }}
SSH_PUBLIC_KEY: not-needed
HOST_IP: not-needed
HOST_FINGERPRINT: not-needed
with:
args: "docs/ $USERNAME@$HOST_NAME:/var/www/select2-docs/user/"
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,44 @@
name: CI

on: [push, pull_request]

jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 8
uses: actions/setup-node@v1
with:
node-version: 8
- name: npm install
run: npm install
- name: Run linting
run: grunt compile lint
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 8
uses: actions/setup-node@v1
with:
node-version: 8
- name: npm install
run: npm install
- name: Run tests
run: grunt compile test
minification:
name: Minification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 8
uses: actions/setup-node@v1
with:
node-version: 8
- name: npm install
run: npm install
- name: Run minification
run: grunt compile minify
57 changes: 57 additions & 0 deletions .github/workflows/package-deploy.yml
@@ -0,0 +1,57 @@
name: Package Deployment

on:
push:
branches:
- develop
- master
release: ~

jobs:
deploy_github:
name: GitHub Package Registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 8
uses: actions/setup-node@v1
with:
node-version: 8
registry-url: https://npm.pkg.github.com/
scope: '@select2'
- name: npm install
run: npm install
- name: Run linting, tests, minify
run: grunt
- name: Deploy (release)
if: github.event_name == 'release'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Deploy (release candidate)
if: github.event_name == 'push'
run: |
npm --no-git-tag-version version prerelease
npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
deploy_npm:
name: NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 8
uses: actions/setup-node@v1
with:
node-version: 8
registry-url: https://npm.pkg.github.com/
scope: '@select2'
- name: npm install
run: npm install
- name: Run linting, tests, minify
run: grunt
- name: Deploy (release)
if: github.event_name == 'release'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5 changes: 3 additions & 2 deletions Gruntfile.js
Expand Up @@ -250,13 +250,14 @@ module.exports = function (grunt) {

grunt.loadNpmTasks('grunt-sass');

grunt.registerTask('default', ['compile', 'test', 'minify']);
grunt.registerTask('default', ['compile', 'test', 'lint', 'minify']);

grunt.registerTask('compile', [
'requirejs:dist', 'requirejs:dist.full', 'requirejs:i18n',
'concat:dist', 'concat:dist.full',
'sass:dev'
]);
grunt.registerTask('minify', ['uglify', 'sass:dist']);
grunt.registerTask('test', ['connect:tests', 'qunit', 'jshint']);
grunt.registerTask('lint', ['jshint']);
grunt.registerTask('test', ['connect:tests', 'qunit']);
};