Compare commits
2 commits
e44ade3113
...
539c27272b
Author | SHA1 | Date | |
---|---|---|---|
539c27272b | |||
5dbe278251 |
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: ${{ secrets.MAINTAINER_NAME }}
|
MAINTAINER_NAME: ${{ vars.MAINTAINER_NAME }}
|
||||||
MAINTAINER_EMAIL: ${{ secrets.MAINTAINER_EMAIL }}
|
MAINTAINER_EMAIL: ${{ vars.MAINTAINER_EMAIL }}
|
||||||
DEBIAN_CODENAME: ${{ secrets.DEBIAN_CODENAME }}
|
DEBIAN_CODENAME: ${{ vars.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: publish-release-notes
|
id: create-release
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir release
|
mkdir release
|
||||||
mv *.deb release/
|
mv *.deb release/
|
||||||
cat << EOF >> "$GITHUB_OUTPUT"
|
{
|
||||||
value<<ENDVAR
|
echo 'release_note<<EOF'
|
||||||
$(cat release-notes.md)
|
cat release-notes.md
|
||||||
ENDVAR
|
echo 'EOF'
|
||||||
EOF
|
} >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Create release on Forgejo
|
- name: Publish 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.publish-release-notes.outputs.value }}
|
release-notes: ${{ steps.create-release.outputs.release_note }}
|
||||||
|
|
||||||
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: ${{ secrets.apt_api_url }}
|
api_url: ${{ vars.apt_api_url }}
|
||||||
api_username: ${{ secrets.apt_api_username }}
|
api_username: ${{ vars.apt_api_username }}
|
||||||
api_password: ${{ secrets.apt_api_password }}
|
api_password: ${{ secrets.apt_api_password }}
|
||||||
repo_name: ${{ secrets.apt_repo_name }}
|
repo_name: ${{ vars.apt_repo_name }}
|
||||||
path: "./"
|
path: "./"
|
||||||
source_name: "forgejo"
|
source_name: "forgejo"
|
||||||
|
|
Loading…
Reference in a new issue