You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-8
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ You’ll be asked to login again, and afterwards your token will be displayed li
24
24
token: a142e09a6b13a21be512b141241c7123
25
25
```
26
26
27
-

27
+

28
28
29
29
### Adding Surge as a `devDependency` to a `package.json` file
30
30
@@ -70,7 +70,7 @@ Commit this change, and push it to your repo. Now, even if you don’t have test
70
70
71
71
Now you can login and setup a new project on CircleCI. Choose the GitHub organisation your project is in (_surge-sh_ in this example) and then build your project’s GitHub repository:
72
72
73
-

73
+

74
74
75
75
### Add Environment Variables
76
76
@@ -84,7 +84,7 @@ SURGE_LOGIN
84
84
85
85
…and set it to the email address you use with Surge.
86
86
87
-

87
+

88
88
89
89
Next, add another environment variable called:
90
90
@@ -94,16 +94,30 @@ SURGE_TOKEN
94
94
95
95
…and set it to your Surge token.
96
96
97
-

97
+

98
98
99
-
##Run Surge on CircleCI
99
+
### Push a `circle.yml` file
100
100
101
-
Now you’re ready to run your deployment step with `surge` on CircleCI.
101
+
The last step is to add a `circle.yml` file to your project.
102
102
103
+
> …the`circle.yml` file makes it easy to tell CircleCI what you need. This is a simple YAML file where you spell out any tweaks required for your web app. You place the file in your git repo's root directory and CircleCI reads the file each time it runs a build.
After you push to your repository, CircleCI will run this `surge` command. Replace `./path/to/your-project` with the path to the source files in your repository, and `your-project.surge.sh` with the domain you’d like to publish to.
117
+
118
+
There are more examples of what you can do with a `circle.yml` file [directly from CircleCI](https://circleci.com/docs/configuration).
119
+
120
+
Now, when you push your project to GitHub again, your deployment command will be run and your project will get published automatically.
0 commit comments