0
1
Fork 1
mirror of https://code.forgejo.org/actions/forgejo-release synced 2024-09-20 02:55:51 +02:00
forgejo-release/testdata/upload-download/.forgejo/workflows/test.yml

32 lines
909 B
YAML
Raw Normal View History

2023-05-26 14:48:58 +02:00
# SPDX-License-Identifier: MIT
name: Upload (and download) a release to (and from) the project that runs the workflow
2023-03-30 08:52:59 +02:00
on: [push]
jobs:
2023-05-26 14:48:58 +02:00
upload-download:
2023-03-30 08:52:59 +02:00
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
2023-03-30 23:30:41 +02:00
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
id: release-upload
2023-03-30 08:52:59 +02:00
uses: SELF@vTest
with:
direction: upload
tag: v1.0
token: FORGEJO_TOKEN
2023-03-30 08:52:59 +02:00
release-dir: upload-dir
release-notes: "RELEASE NOTES"
verbose: true
2023-03-30 23:30:41 +02:00
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
id: release-download
2023-03-30 08:52:59 +02:00
uses: SELF@vTest
with:
direction: download
tag: v1.0
token: FORGEJO_TOKEN
2023-03-30 08:52:59 +02:00
release-dir: download-dir
verbose: true
2023-03-30 23:30:41 +02:00
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: |
2023-03-30 08:52:59 +02:00
diff -u upload-dir download-dir