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
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,17 @@
1
1
# Deploy to Gist
2
2
3
-
[](https://github.com/exuanbo/actions-deploy-gist/actions?query=workflow%3Atest)
3
+
[](https://github.com/exuanbo/actions-deploy-gist/releases)
4
+
[](https://github.com/exuanbo/actions-deploy-gist/actions?query=workflow%3Atest)
This is a Github Action to deploy your file to Github Gist.
4
8
5
9
## Quick start
6
10
7
11
```yml
8
12
- uses: actions/checkout@v2
9
13
- name: Deploy
10
-
uses: exuanbo/actions-deploy-gist@v1.0.3
14
+
uses: exuanbo/actions-deploy-gist@v1
11
15
with:
12
16
token: ${{ secrets.TOKEN }}
13
17
gist_id: from_your_gist_url
@@ -20,14 +24,12 @@
20
24
### Prep work
21
25
22
26
1. Create a public gist if you don't have one.
23
-
1. Generate a new [Personal access token](https://github.com/settings/tokens/). Only the `gist` scope is needed.
24
-
25
-
Check [Scopes for OAuth Apps](https://docs.github.com/en/developers/apps/scopes-for-oauth-apps) for details.
27
+
1. Generate a new [Personal access token](https://github.com/settings/tokens/). Only the `gist` scope is needed. Check [Scopes for OAuth Apps](https://docs.github.com/en/developers/apps/scopes-for-oauth-apps) for details.
26
28
27
29
### Project setup
28
30
29
-
1. Edit your repo `.github/workflows/foo.yml` like in the example.
30
-
1. Go to your repo **Settings > Secrets**. Add the token generated above as `TOKEN`.
31
+
1. Go to the repo **Settings > Secrets**. Add the generated token as `TOKEN`.
32
+
1. Edit workflow file `.github/workflows/deploy.yml` as the example above.
31
33
32
34
### Options
33
35
@@ -45,4 +47,4 @@ Relative to your repo's root directory, e.g. `./dist/foo.bar`.
0 commit comments