mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2024-12-27 23:24:45 -05:00
feat(doc): update README.md
This commit is contained in:
parent
3abc683f45
commit
8ebade3458
1 changed files with 16 additions and 5 deletions
21
README.md
21
README.md
|
@ -28,10 +28,12 @@ Upload or download the assets of a release to a Forgejo instance.
|
||||||
| `prerelease` | <p>Mark Release as Pre-Release</p> | `false` | `false` |
|
| `prerelease` | <p>Mark Release as Pre-Release</p> | `false` | `false` |
|
||||||
<!-- action-docs-inputs source="action.yml" -->
|
<!-- action-docs-inputs source="action.yml" -->
|
||||||
|
|
||||||
## Example
|
## Examples
|
||||||
|
|
||||||
### Upload
|
### Upload
|
||||||
|
|
||||||
|
Upload the release located in `release-dir` to the release section of a repository (`url` and `repo`):
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on: [tag]
|
on: [tag]
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -39,7 +41,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/forgejo-release@v1
|
- uses: actions/forgejo-release@v2
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://code.forgejo.org
|
url: https://code.forgejo.org
|
||||||
|
@ -58,7 +60,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/forgejo-release@v1
|
- uses: actions/forgejo-release@v2
|
||||||
with:
|
with:
|
||||||
direction: download
|
direction: download
|
||||||
url: https://code.forgejo.org
|
url: https://code.forgejo.org
|
||||||
|
@ -67,6 +69,15 @@ jobs:
|
||||||
release-dir: ./ # by default, files are downloaded into dist/release
|
release-dir: ./ # by default, files are downloaded into dist/release
|
||||||
```
|
```
|
||||||
|
|
||||||
## Update the README
|
### Real world example
|
||||||
|
|
||||||
With https://github.com/npalm/action-docs `action-docs --update-readme`
|
This action is used to [publish](https://code.forgejo.org/forgejo/release-notes-assistant/src/branch/main/.forgejo/workflows/release.yml) the release notes assistant assets.
|
||||||
|
|
||||||
|
## Update the `input` section of the README
|
||||||
|
|
||||||
|
Using [action-docs](https://github.com/npalm/action-docs):
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Edit the action.yml file and run:
|
||||||
|
action-docs --update-readme
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue