mirror of
https://code.forgejo.org/actions/forgejo-release
synced 2024-11-29 22:00:38 +00:00
118 lines
6.3 KiB
YAML
118 lines
6.3 KiB
YAML
|
# SPDX-License-Identifier: MIT
|
||
|
|
||
|
name: Upload/download a signed release (no GPG passphrase)
|
||
|
on: [push]
|
||
|
env:
|
||
|
gpg_private_key: |
|
||
|
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
||
|
|
||
|
lQVYBGRwcNcBDADUZUxCbjw0hOtMaLIYhEbgYFR2Oyxz8IDJTVALuLGQbHnLM6La
|
||
|
IVxGwk9CgxX8vP9pN3Fy+uX+KInV41bLGd30qPDvqCuAbAo4bAT0Sg/fN3A7fuSX
|
||
|
KfUStJbY3OyQZQbHWxOpsyIziIqBMXipgFQD/IncRMhWjcQh4znnkUb+e3oj1/f1
|
||
|
9eErwfgsiDsj7M/FSWolrwttd2VQah+WumhVFjvb+M4j5zI9UBNGNsVCTxQXTN5L
|
||
|
MtPJuypuMzawmTvUNm7470VDgO/dCWGlZ7gshoNd2fNnFCMgTSWYu9C8zFCkFOi2
|
||
|
ZiwmIQTu3QBDNXaqR7r9j1s9q4hrloEZwmTFXV+PvEczUXx+8Scq8ONZGJdjo6NL
|
||
|
mp1fM5//o3Vfl0oJsQf2WS/bpyJQDZEQaKGekHJ5W4OuH9+mzDfqkkpTl/aduVN7
|
||
|
uXF4AYfdZMOqNjkNpi3RAh54LKVtqaeVRzypAnjn8Vb2WHw7tQX9S4DDUtul9Pyx
|
||
|
a6xqLdtJYw/PwaUAEQEAAQAL/2HSZdUSwFfQAC8o6R2xjpM4yq3JgyfC1Q3htcQw
|
||
|
RFeoHlAgcBjW1JEiXS7dAPtucJQdHPs/4z2znggMtKTGPRu5034NjjuPhwWFeqKo
|
||
|
mbbM6bv9LXsRr/X1hqRK3AmE/iJDKEM4ZcAmWuQ1zMUEfa14WmZAp6R1lqek575n
|
||
|
grMiW5a2mVWG8TYeGBcqh1J8dxT+Qw0oGbNJEjh/KB1brUHDA77EUOzo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
|
KIdQ1ysd+YFq9mTwYei/ZFQFyk+X3xxoIhlMd1LkynXV/Swrv11WBxqk0HPaWgc5
|
||
|
WhUrK+gniZjPQVjOyHiKhu2rCBRXO1ipDdgdBX1aRe3XzsYJt0fI2qewm7ItxPk2
|
||
|
wbbrfDD3kRu19PbxZYxesKLr5Pj0suIPNI0VWp2Te6HkcRgB8+fR8DAtbOCbo8Oy
|
||
|
GgK0fz3gzhvhAUxoCRayo4iGTA6W4N+sryuOdDikRIirVxgksA2LLMwQzaSqllkh
|
||
|
AoH/WKXfBxOQo9qDcxdBnCkM0bZF5tgrNqYf1IN3bZr2pV4CYo3Z2JaL
|
||
|
=5CPG
|
||
|
-----END PGP PRIVATE KEY BLOCK-----
|
||
|
|
||
|
jobs:
|
||
|
upload-gpg-no-passphrase:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||
|
id: release-upload
|
||
|
uses: SELF@vTest
|
||
|
with:
|
||
|
direction: upload
|
||
|
tag: v1.2
|
||
|
token: FORGEJO_TOKEN
|
||
|
release-dir: upload-dir
|
||
|
release-notes: "RELEASE NOTES"
|
||
|
gpg-private-key: ${{ env.gpg_private_key }}
|
||
|
verbose: true
|
||
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||
|
id: release-download
|
||
|
uses: SELF@vTest
|
||
|
with:
|
||
|
direction: download
|
||
|
tag: v1.2
|
||
|
token: FORGEJO_TOKEN
|
||
|
release-dir: download-dir
|
||
|
verbose: true
|
||
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||
|
run: |
|
||
|
test "$(find download-dir -name '*.asc')"
|
||
|
diff -u upload-dir download-dir
|