name: Upload & Download 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: user: testuser password: admin1234 lxc-ip-prefix: 10.0.15 - id: testrepo run: | forgejo-test-helper.sh push testrepo http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser testrepo > /tmp/output grep '^sha=' < /tmp/output >> $GITHUB_OUTPUT - id: release-upload uses: SELF@vTest with: direction: upload url: ${{ steps.forgejo.outputs.url }} repo: testuser/testrepo tag: v1.0 sha: ${{ steps.testrepo.outputs.sha }} doer: testuser token: ${{ steps.forgejo.outputs.token }} release-dir: upload-dir release-notes: "RELEASE NOTES" verbose: true - id: release-download uses: SELF@vTest with: direction: download url: ${{ steps.forgejo.outputs.url }} repo: testuser/testrepo tag: v1.0 doer: testuser token: ${{ steps.forgejo.outputs.token }} release-dir: download-dir verbose: true - run: | diff -u upload-dir download-dir