Compare commits
8 Commits
4ac9bbc591
...
ce36eb9e28
Author | SHA1 | Date |
---|---|---|
Earl Warren | ce36eb9e28 | |
Earl Warren | 0acb5f263e | |
earl-warren | 54df7acad2 | |
Earl Warren | 241b5920f4 | |
Earl Warren | fdf3d323b9 | |
Neshura | 81f7998d0e | |
Neshura | a29fc96f18 | |
Earl Warren | 4d98c454fb |
|
@ -1,4 +1,4 @@
|
|||
on: [ push ]
|
||||
on: [ pull_request, push ]
|
||||
jobs:
|
||||
integration:
|
||||
runs-on: self-hosted
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
on: [ push ]
|
||||
on: [ pull_request, push ]
|
||||
jobs:
|
||||
integration:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ Upload or download the assets of a release to a Forgejo instance.
|
|||
| gpg-passphrase | Passphrase of the GPG Private Key | `false` | |
|
||||
| download-retry | Number of times to retry if the release is not ready (default 1) | `false` | |
|
||||
| verbose | Increase the verbosity level | `false` | false |
|
||||
| prerelease | Mark Release as Pre-Release | `false` | false |
|
||||
<!-- action-docs-inputs -->
|
||||
|
||||
## Example
|
||||
|
@ -40,3 +41,7 @@ jobs:
|
|||
release-dir: dist/release
|
||||
release-notes: "MY RELEASE NOTES"
|
||||
```
|
||||
|
||||
## Update the README
|
||||
|
||||
With https://github.com/npalm/action-docs `action-docs --update-readme`
|
||||
|
|
|
@ -32,7 +32,10 @@ inputs:
|
|||
verbose:
|
||||
description: 'Increase the verbosity level'
|
||||
default: 'false'
|
||||
|
||||
prerelease:
|
||||
description: 'Mark Release as Pre-Release'
|
||||
default: 'false'
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
|
@ -60,6 +63,8 @@ runs:
|
|||
TAG=${TAG##refs/tags/}
|
||||
fi
|
||||
|
||||
export PRERELEASE="${{ inputs.prerelease }}"
|
||||
|
||||
export TOKEN="${{ inputs.token }}"
|
||||
|
||||
export RELEASE_DIR="${{ inputs.release-dir }}"
|
||||
|
|
|
@ -40,7 +40,7 @@ ensure_tag() {
|
|||
upload_release() {
|
||||
local assets=$(ls $RELEASE_DIR/* | sed -e 's/^/-a /')
|
||||
local releasetype
|
||||
echo "${TAG}" | grep -qi '\-rc' && export releasetype="--prerelease" && echo "Uploading as Pre-Release"
|
||||
( $PRERELEASE || echo "${TAG}" | grep -qi '\-rc' ) && export releasetype="--prerelease" && echo "Uploading as Pre-Release"
|
||||
test ${releasetype+false} || echo "Uploading as Stable"
|
||||
ensure_tag
|
||||
anchor=$(echo $TAG | sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g')
|
||||
|
|
|
@ -20,8 +20,9 @@ jobs:
|
|||
image-version: 1.20
|
||||
- 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
|
||||
url=http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }}
|
||||
forgejo-test-helper.sh push testrepo $url testuser testrepo > /tmp/output
|
||||
echo sha=$(forgejo-test-helper.sh branch_tip $url testuser/testrepo main) >> $GITHUB_OUTPUT
|
||||
- id: release-upload
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue