Compare commits
2 commits
539c27272b
...
e44ade3113
Author | SHA1 | Date | |
---|---|---|---|
e44ade3113 | |||
6559744642 |
1 changed files with 14 additions and 14 deletions
|
@ -13,9 +13,9 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Build Debian package
|
- name: Build Debian package
|
||||||
env:
|
env:
|
||||||
MAINTAINER_NAME: ${{ vars.MAINTAINER_NAME }}
|
MAINTAINER_NAME: ${{ secrets.MAINTAINER_NAME }}
|
||||||
MAINTAINER_EMAIL: ${{ vars.MAINTAINER_EMAIL }}
|
MAINTAINER_EMAIL: ${{ secrets.MAINTAINER_EMAIL }}
|
||||||
DEBIAN_CODENAME: ${{ vars.DEBIAN_CODENAME }}
|
DEBIAN_CODENAME: ${{ secrets.DEBIAN_CODENAME }}
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.GPG_KEY }}"|base64 -d|gpg --import
|
echo "${{ secrets.GPG_KEY }}"|base64 -d|gpg --import
|
||||||
./build.sh
|
./build.sh
|
||||||
|
@ -42,25 +42,25 @@ jobs:
|
||||||
name: dist
|
name: dist
|
||||||
|
|
||||||
- name: Create the release
|
- name: Create the release
|
||||||
id: create-release
|
id: publish-release-notes
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir release
|
mkdir release
|
||||||
mv *.deb release/
|
mv *.deb release/
|
||||||
{
|
cat << EOF >> "$GITHUB_OUTPUT"
|
||||||
echo 'release_note<<EOF'
|
value<<ENDVAR
|
||||||
cat release-notes.md
|
$(cat release-notes.md)
|
||||||
echo 'EOF'
|
ENDVAR
|
||||||
} >> "$GITHUB_OUTPUT"
|
EOF
|
||||||
|
|
||||||
- name: Publish release on Forgejo
|
- name: Create release on Forgejo
|
||||||
uses: actions/forgejo-release@v1
|
uses: actions/forgejo-release@v1
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://gitea.zionetrix.net
|
url: https://gitea.zionetrix.net
|
||||||
token: ${{ secrets.forgejo_token }}
|
token: ${{ secrets.forgejo_token }}
|
||||||
release-dir: release
|
release-dir: release
|
||||||
release-notes: ${{ steps.create-release.outputs.release_note }}
|
release-notes: ${{ steps.publish-release-notes.outputs.value }}
|
||||||
|
|
||||||
publish-aptly:
|
publish-aptly:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
@ -75,9 +75,9 @@ jobs:
|
||||||
- name: "Publish Debian package on Aptly repository"
|
- name: "Publish Debian package on Aptly repository"
|
||||||
uses: https://gitea.zionetrix.net/bn8/aptly-publish@master
|
uses: https://gitea.zionetrix.net/bn8/aptly-publish@master
|
||||||
with:
|
with:
|
||||||
api_url: ${{ vars.apt_api_url }}
|
api_url: ${{ secrets.apt_api_url }}
|
||||||
api_username: ${{ vars.apt_api_username }}
|
api_username: ${{ secrets.apt_api_username }}
|
||||||
api_password: ${{ secrets.apt_api_password }}
|
api_password: ${{ secrets.apt_api_password }}
|
||||||
repo_name: ${{ vars.apt_repo_name }}
|
repo_name: ${{ secrets.apt_repo_name }}
|
||||||
path: "./"
|
path: "./"
|
||||||
source_name: "forgejo"
|
source_name: "forgejo"
|
||||||
|
|
Loading…
Reference in a new issue