mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2024-11-14 16:55:00 -05:00
36 lines
1 KiB
YAML
36 lines
1 KiB
YAML
#
|
|
# The following:
|
|
# if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
# is a workaround until https://codeberg.org/forgejo/forgejo/issues/608 is fixed
|
|
#
|
|
name: Upload & Download a Forgejo Release
|
|
on: [push]
|
|
jobs:
|
|
setup-forgejo:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
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
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
id: release-download
|
|
uses: SELF@vTest
|
|
with:
|
|
direction: download
|
|
tag: v1.0
|
|
token: FORGEJO_TOKEN
|
|
doer: testuser
|
|
release-dir: download-dir
|
|
verbose: true
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
run: |
|
|
diff -u upload-dir download-dir
|