2023-03-31 00:30:41 +03:00
|
|
|
#
|
|
|
|
# The following:
|
|
|
|
# if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
|
|
# is a workaround until https://codeberg.org/forgejo/forgejo/issues/608 is fixed
|
|
|
|
#
|
2023-03-30 09:52:59 +03:00
|
|
|
name: Upload & Download a Forgejo Release
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
setup-forgejo:
|
|
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-03-31 00:30:41 +03:00
|
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
|
|
id: release-upload
|
2023-03-30 09:52:59 +03:00
|
|
|
uses: SELF@vTest
|
|
|
|
with:
|
|
|
|
direction: upload
|
|
|
|
tag: v1.0
|
2023-03-30 17:28:59 +03:00
|
|
|
token: FORGEJO_TOKEN
|
2023-03-30 09:52:59 +03:00
|
|
|
release-dir: upload-dir
|
|
|
|
release-notes: "RELEASE NOTES"
|
|
|
|
verbose: true
|
2023-03-31 00:30:41 +03:00
|
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
|
|
id: release-download
|
2023-03-30 09:52:59 +03:00
|
|
|
uses: SELF@vTest
|
|
|
|
with:
|
|
|
|
direction: download
|
|
|
|
tag: v1.0
|
2023-03-30 17:28:59 +03:00
|
|
|
token: FORGEJO_TOKEN
|
2023-03-30 09:52:59 +03:00
|
|
|
release-dir: download-dir
|
|
|
|
verbose: true
|
2023-03-31 00:30:41 +03:00
|
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
|
|
run: |
|
2023-03-30 09:52:59 +03:00
|
|
|
diff -u upload-dir download-dir
|