1
0
mirror of synced 2024-11-22 04:56:08 +03:00
Commit Graph

27 Commits

Author SHA1 Message Date
Kevin Brown
37773d408f Delay documentation deployment
This should hopefully fix any possible issues where the NPM package
may be released after the documentation is deployed, which could cause
a cause miss by jsDelivr and cause the documentation to cache without
pulling in the Select2 dependency.

It hasn't happened yet, but I'm concerned it could happen and I don't
want to put in the effort to make a more sophisticated way of
handling this issue.
2019-10-28 04:10:33 -04:00
Kevin Brown
796ab7bf41 Fix deploying to NPM
This changes the NPM registry URL to point to the actual NPM registry
instead of the GitHub package registry.
2019-10-28 04:09:40 -04:00
Kevin Brown
7c67f3e9b6
Enable GPM (#5660)
* Uncomment the deploy_github job for GPR

* Automatically add private scope to package for GPM

This is requires in order to deploy to GitHub package manager since
all packages must be scoped to the organization that they are being
deployed to. Because of how publishing scoped packages works with
NPM, there is no easier way to rename a package that is being pushed
to both a scoped and unscoped registry.

* Don't run NPM deploy if it's not a release

There was a change last week that now allows jobs to be filtered
entirely, so this now works like we had originally hoped.

* Tag branch pushes with commit

This is needed because you cannot overwrite a version on NPM, so the
previous plan of just using the prelease version would only work for
a single commit.

* Fixed invalid version identifier
2019-10-09 23:25:12 -04:00
Kevin Brown
2e4c11339c Disable deploying to GPM
We have to wait to be cleared for the private beta access first before we can actually deploy to this.
2019-09-11 23:49:02 -04:00
Kevin Brown
7688be5db5 Only deploy docs on releases 2019-09-11 23:27:04 -04:00
Kevin Brown
e1d64e92c4 HOST_FINGERPRINT is also required but unused 2019-09-11 23:15:02 -04:00
Kevin Brown
a31d56d47b HOST_IP is also required but unused 2019-09-11 23:12:52 -04:00
Kevin Brown
120065ed46 SSH_PUBLIC_KEY is required but unused 2019-09-11 23:10:22 -04:00
Kevin Brown
c95ed1796a Switch to using rsync 2019-09-11 23:07:31 -04:00
Kevin Brown
dea726d065 Use new syntax for args 2019-09-11 22:59:11 -04:00
Kevin Brown
bff3a777ae Try using strip.components with drone-scp
This should, in theory, strip out the leading docs directory when doing the copy.
2019-09-11 22:57:24 -04:00
Kevin Brown
29d01a00c5 Move docs into root directory before copying
Hopefully this fixes the issue where it was unpacking the enitre directory into the destination instead of the individually specified files.
2019-09-11 22:51:44 -04:00
Kevin Brown
b3c6d3ebfe Remove trailing slash on destination directory 2019-09-11 22:35:52 -04:00
Kevin Brown
5e32678e49 Proper syntax for copying dir contents 2019-09-11 22:29:43 -04:00
Kevin Brown
c891d2ec72 Deploy docs to the production location 2019-09-11 22:20:38 -04:00
Kevin Brown
8cb7e33766 Fix copying directory during deployment 2019-09-11 22:14:18 -04:00
Kevin Brown
fe208f1f86 Added workflow for deploying documentation
This does not yet deploy the actual documentation, but it instead deploys the old docs (which are now redirects) to a temporary folder for testing.
2019-09-11 21:49:00 -04:00
Kevin Brown
891993e39b Renamed deploy.yml to package-deploy.yml
Eventually we are going to want to do documentation deployments so it makes sense to split them up.
2019-09-11 21:22:02 -04:00
Kevin Brown
dafddb73c8 Made NPM deployment step consistent with GPM 2019-09-11 21:15:02 -04:00
Kevin Brown
7b1367c6a0 Switch to only deploying when pushing to develop/master
Hopefully this still allows the release trigger to work, but this is relying on undocumented behaviour that nobody else appears to have tried.
2019-09-11 21:13:28 -04:00
Kevin Brown
748d279107 Extract NPM deployment out to different workflow
This will allow us to limit what branches it runs on.
2019-09-11 03:08:03 -04:00
Kevin Brown
82c51a319c Remove dry run from publish 2019-09-11 20:57:40 -04:00
Kevin Brown
8b9a99d286 Enable dry runs for publishing 2019-09-10 20:56:45 -04:00
Kevin Brown
91838fe0a6 Add deploying to GPM and NPM
This also adds a handler for the release event, which is what we want to be using for pushing NPM builds out.
2019-09-10 20:07:35 -04:00
Kevin Brown
ffd98a493b Add steps for linting, minification, start deployments
The deployment step is not yet finished and this required splitting linting from running tests.
2019-09-10 19:44:27 -04:00
Kevin Brown
6758bb50b9 Fixed GitHub Actions syntax 2019-09-10 19:28:41 -04:00
Kevin Brown
f025d675a9 Added basic GitHub Actions workflow to build the project 2019-09-10 19:21:22 -04:00