mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-04-24 18:02:15 +00:00
refactor upload-download test
This commit is contained in:
parent
fb7353f11d
commit
26acdcdb2e
1 changed files with 15 additions and 2 deletions
|
@ -28,6 +28,16 @@ jobs:
|
||||||
release-notes: "RELEASE NOTES"
|
release-notes: "RELEASE NOTES"
|
||||||
override: "true"
|
override: "true"
|
||||||
verbose: true
|
verbose: true
|
||||||
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
id: release-upload-v2
|
||||||
|
uses: SELF@vTest
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
tag: v2.0
|
||||||
|
token: FORGEJO_TOKEN
|
||||||
|
release-dir: upload-dir-v2
|
||||||
|
release-notes: "RELEASE NOTES V2"
|
||||||
|
verbose: true
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
id: release-download
|
id: release-download
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
|
@ -37,15 +47,18 @@ jobs:
|
||||||
token: FORGEJO_TOKEN
|
token: FORGEJO_TOKEN
|
||||||
release-dir: download-dir
|
release-dir: download-dir
|
||||||
verbose: true
|
verbose: true
|
||||||
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
run: |
|
||||||
|
diff -u upload-dir download-dir
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
id: release-download-latest
|
id: release-download-latest
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
with:
|
with:
|
||||||
direction: download
|
direction: download
|
||||||
token: FORGEJO_TOKEN
|
token: FORGEJO_TOKEN
|
||||||
release-dir: download-dir
|
release-dir: download-dir-v2
|
||||||
download-latest: true
|
download-latest: true
|
||||||
verbose: true
|
verbose: true
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
run: |
|
run: |
|
||||||
diff -u upload-dir download-dir
|
diff -u upload-dir-v2 download-dir-v2
|
||||||
|
|
Loading…
Add table
Reference in a new issue