Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uiolee/surge-cli-action
Surge is bundled so you can use it directly without installing Surge via package manager.
https://github.com/uiolee/surge-cli-action
actions github-actions javascript nodejs surge
Last synced: about 1 month ago
JSON representation
Surge is bundled so you can use it directly without installing Surge via package manager.
- Host: GitHub
- URL: https://github.com/uiolee/surge-cli-action
- Owner: uiolee
- License: mpl-2.0
- Created: 2024-05-26T03:55:23.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T13:48:05.000Z (4 months ago)
- Last Synced: 2024-07-09T17:30:56.545Z (4 months ago)
- Topics: actions, github-actions, javascript, nodejs, surge
- Language: JavaScript
- Homepage:
- Size: 613 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# surge-cli-action
[![Deploy](https://github.com/uiolee/surge-cli-action-test/actions/workflows/deploy.yml/badge.svg?branch=main)](https://github.com/uiolee/surge-cli-action-test/actions/workflows/deploy.yml)
Surge is bundled so you can use it directly without installing Surge via package manager.
## Usage
> [!IMPORTANT]
> This action have bundled [`surge`](https://www.npmjs.com/package/surge) package.
> So you didn't need `npm install surge````yml
- uses: uiolee/[email protected]
with:
surge-args: "./dist https://example.surge.sh"
surge-token: ${{ secrets.SURGE_TOKEN }}
surge-email: ${{ secrets.SURGE_EMAIL }} # Just used to mask your email address to prevent it from being displayed in the log of workflow.
```> The above action will be performed like the following command:
>
> ```bash
> surge ./dist https://example.surge.sh --token ${{ secrets.SURGE_TOKEN }}
> ```### Example
uiolee/surge-cli-action-test
[deploy.yml#L39-L44](https://github.com/uiolee/surge-cli-action-test/blob/cd8ccb702acebcd78fa8911d7f985fef49e1ad2d/.github/workflows/deploy.yml#L39-L44)
![](./image/showcase.webp)
## Versioning
This versioning of this action **does not** use semver.
The version number of this action represents the version of the [surge](https://www.npmjs.com/package/surge) in the bundle.
**Currently** no plans to provide old versions.