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