mirror of
https://code.forgejo.org/actions/forgejo-release
synced 2026-04-05 17:46:54 +00:00
feat(ci): Allow uploading single files
This commit is contained in:
parent
e7b60f9ae8
commit
562c553e31
4 changed files with 37 additions and 1 deletions
|
|
@ -122,5 +122,30 @@ jobs:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
id: release-upload-files
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
direction: upload
|
||||
tag: v/3.0-release-file
|
||||
token: FORGEJO_TEST_TOKEN
|
||||
release-files: |
|
||||
upload-dir-v3/file1-v3.txt
|
||||
upload-dir-v3/file2-v3.txt
|
||||
release-notes: "RELEASE NOTES"
|
||||
verbose: true
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
id: release-download-with-slash-in-tag
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
direction: download
|
||||
tag: v/3.0
|
||||
token: FORGEJO_TEST_TOKEN
|
||||
release-dir: download-dir-v3-files
|
||||
verbose: true
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
run: |
|
||||
diff -u upload-dir-v3 download-dir-v3
|
||||
|
||||
- if: failure()
|
||||
run: docker logs forgejo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue