Skip to content

bevry-actions/surge

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bevry-actions/surge

Once your tests succeed, use this action to deploy your commit, branch, and tag to Surge.

This allows you to git ignore your outputs (e.g. build files, documentation, etc) such that their changes don't make your repository dirty, nor pollute your git history, while allowing you to leverage CDN to reference your source code and outputs, for every commit, branch, and tag.

Example

For instance, for the ambi project.

You can get the rendered documentation for:

the master branch via

http://master.ambi.bevry.surge.sh/docs/globals.html

the v8.22.0 tag via:

http://v8.22.0.ambi.bevry.surge.sh/docs/globals.html

the 0250e1ed2cbc01773e0974165d1c9469c922b271 commit via:

http://0250e1ed2cbc01773e0974165d1c9469c922b271.ambi.bevry.surge.sh/docs/globals.html

Install

Make sure that the desired surge version you wish to use is installed locally:

npm install --save-dev surge

And add the following to your GitHub Action workflow after your tests have completed and you have built your compile targets/documentation.

- name: publish to surge
  uses: bevry-actions/surge@main
  with:
      surgeLogin: ${{secrets.SURGE_LOGIN}}
      surgeToken: ${{secrets.SURGE_TOKEN}}

License

Public Domain via The Unlicense