forgejo-release/testdata/upload-download/.forgejo/workflows/test.yml

39 lines
1.1 KiB
YAML
Raw Normal View History

2023-03-29 11:16:26 -04:00
name: Upload a Forgejo Release
on: [push]
jobs:
setup-forgejo:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- id: forgejo
uses: https://code.forgejo.org/actions/setup-forgejo@v1
with:
2023-03-29 13:20:39 -04:00
user: testuser
2023-03-29 11:16:26 -04:00
password: admin1234
2023-03-29 13:20:39 -04:00
- run: |
forgejo-test-helper.sh push testrepo http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser testrepo
2023-03-29 11:16:26 -04:00
- id: release-upload
uses: SELF@vTest
with:
direction: upload
url: ${{ steps.forgejo.outputs.url }}
2023-03-29 13:20:39 -04:00
repo: testuser/testrepo
2023-03-29 11:16:26 -04:00
tag: v1.0
2023-03-29 13:20:39 -04:00
doer: testuser
2023-03-29 11:16:26 -04:00
token: ${{ steps.forgejo.outputs.token }}
release-dir: upload-dir
verbose: true
- id: release-download
uses: SELF@vTest
with:
direction: download
url: ${{ steps.forgejo.outputs.url }}
2023-03-29 13:20:39 -04:00
repo: testuser/testrepo
2023-03-29 11:16:26 -04:00
tag: v1.0
2023-03-29 13:20:39 -04:00
doer: testuser
2023-03-29 11:16:26 -04:00
token: ${{ steps.forgejo.outputs.token }}
release-dir: download-dir
verbose: true
- run: |
diff -u upload-dir download-dir