mirror of
https://code.forgejo.org/actions/forgejo-release
synced 2024-11-22 18:20:40 +00:00
31 lines
909 B
YAML
31 lines
909 B
YAML
# SPDX-License-Identifier: MIT
|
|
|
|
name: Upload (and download) a release to (and from) the project that runs the workflow
|
|
on: [push]
|
|
jobs:
|
|
upload-download:
|
|
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
|
|
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
|
|
release-dir: download-dir
|
|
verbose: true
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
run: |
|
|
diff -u upload-dir download-dir
|