mirror of
https://code.forgejo.org/actions/forgejo-release
synced 2024-11-26 04:00:43 +00:00
28 lines
706 B
YAML
28 lines
706 B
YAML
name: Upload & Download a Forgejo Release
|
|
on: [push]
|
|
jobs:
|
|
setup-forgejo:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- id: release-upload
|
|
uses: SELF@vTest
|
|
with:
|
|
direction: upload
|
|
tag: v1.0
|
|
token: FORGEJO_TOKEN
|
|
doer: testuser
|
|
release-dir: upload-dir
|
|
release-notes: "RELEASE NOTES"
|
|
verbose: true
|
|
- id: release-download
|
|
uses: SELF@vTest
|
|
with:
|
|
direction: download
|
|
tag: v1.0
|
|
token: FORGEJO_TOKEN
|
|
doer: testuser
|
|
release-dir: download-dir
|
|
verbose: true
|
|
- run: |
|
|
diff -u upload-dir download-dir
|