Compare commits
2 commits
72a444f4c2
...
dd1c74999d
Author | SHA1 | Date | |
---|---|---|---|
dd1c74999d | |||
00ab9d069e |
2 changed files with 22 additions and 10 deletions
|
@ -4,18 +4,10 @@
|
|||
set -eu -o pipefail
|
||||
|
||||
readonly REPOS="backports user"
|
||||
readonly BASEBRANCH=$GITHUB_BASE_REF
|
||||
readonly QUBES_REL=$( echo $GITHUB_REF_NAME | awk -F '-' '{print $2}')
|
||||
readonly TARGET_REPO=$CI_ALPINE_REPO
|
||||
|
||||
get_qubes_release() {
|
||||
case $GITHUB_BASE_REF in
|
||||
r*) echo $GITHUB_BASE_REF;;
|
||||
main) echo r4.3;;
|
||||
esac
|
||||
}
|
||||
|
||||
readonly QUBES_REL=$(get_qubes_release)
|
||||
readonly group=qubes/$QUBES_REL
|
||||
readonly group="qubes/$QUBES_REL"
|
||||
readonly rpm=$(find . -name 'qubes-template-*.rpm')
|
||||
|
||||
echo "Sending $rpm to $TARGET_REPO/$group/upload"
|
||||
|
|
|
@ -53,3 +53,23 @@ jobs:
|
|||
uses: forgejo/download-artifact@v3
|
||||
- name: Package deployment
|
||||
run: ${{ github.workspace }}/.forgejo/bin/deploy.sh
|
||||
release-create:
|
||||
needs: [release-build]
|
||||
runs-on: x86_64
|
||||
container:
|
||||
image: alpine:latest
|
||||
steps:
|
||||
- name: Setting up environment
|
||||
run: apk add nodejs curl findutils git gawk
|
||||
- name: Package download
|
||||
uses: forgejo/download-artifact@v3
|
||||
- name: Release creation
|
||||
uses: actions/forgejo-release@v2.3.1
|
||||
with:
|
||||
direction: upload
|
||||
url: https://api.ayakael.net
|
||||
repo: ayakael/qubes-builder-alpine
|
||||
token: "${{ secrets.FORGE_REPO_TOKEN }}"
|
||||
release-dir: ./package
|
||||
release-notes: "For download of template through DNF, please go to https://ayakael.net/forge/-/packages/rpm/qubes-template-alpine320"
|
||||
|
||||
|
|
Loading…
Reference in a new issue