mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2024-11-14 05:26:32 +02:00
Compare commits
No commits in common. "888150209ed8b956f3c463ec2d321347172c8e65" and "ce36eb9e28103018eaabd9c48281a8efd4ba36a3" have entirely different histories.
888150209e
...
ce36eb9e28
1 changed files with 3 additions and 25 deletions
28
README.md
28
README.md
|
@ -27,9 +27,7 @@ Upload or download the assets of a release to a Forgejo instance.
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
### Upload
|
```
|
||||||
|
|
||||||
```yaml
|
|
||||||
on: [tag]
|
on: [tag]
|
||||||
jobs:
|
jobs:
|
||||||
upload-release:
|
upload-release:
|
||||||
|
@ -38,32 +36,12 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/forgejo-release@v1
|
- uses: actions/forgejo-release@v1
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://code.forgejo.org
|
url: https://code.forgejo.org
|
||||||
release-dir: dist/release
|
release-dir: dist/release
|
||||||
release-notes: "MY RELEASE NOTES"
|
release-notes: "MY RELEASE NOTES"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Download
|
|
||||||
|
|
||||||
Example downloading the forgejo release v1.21.4-0 into the working directory:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
on: [tag]
|
|
||||||
jobs:
|
|
||||||
download-release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/forgejo-release@v1
|
|
||||||
with:
|
|
||||||
direction: download
|
|
||||||
url: https://code.forgejo.org
|
|
||||||
repo: forgejo/forgejo
|
|
||||||
tag: v1.21.4-0
|
|
||||||
release-dir: ./ # by default, files are downloaded into dist/release
|
|
||||||
```
|
|
||||||
|
|
||||||
## Update the README
|
## Update the README
|
||||||
|
|
||||||
With https://github.com/npalm/action-docs `action-docs --update-readme`
|
With https://github.com/npalm/action-docs `action-docs --update-readme`
|
||||||
|
|
Loading…
Reference in a new issue