Skip to content

changed needs

changed needs #25

Workflow file for this run

on:
push:
tags:
- '*.*.*'
workflow_dispatch:
jobs:
create_release_and_build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Create Release
uses: ncipollo/release-action@v1
- name: Checkout code
uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt update
sudo apt install -y make build-essential libpam0g-dev
- name: Set Environment Variables
run: |
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
echo "ARCH=amd64" >> $GITHUB_ENV
- name: Build
run: make package
- name: Upload Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: package/libpam-daily-word_${{ github.ref_name }}_amd64.deb
asset_name: libpam-daily-word_${{ github.ref_name }}_amd64.deb
overwrite: false
- name: Upload Release Artifact
uses: actions/upload-artifact@v4
with:
name: libpam-daily-word_${{ github.ref_name }}_amd64.deb
path: package/libpam-daily-word_${{ github.ref_name }}_amd64.deb
repository:
runs-on: ubuntu-latest
needs: create_release_and_build
container:
image: debian:experimental
steps:
- name: Checkout code
uses: actions/checkout@v4
#with:
#repository: ${{ github.event.pull_request.head.repo.full_name }}
#ref: ${{ github.event.pull_request.head.ref }}
- name: Download Release Artifact
uses: actions/download-artifact@v4
with:
name: libpam-daily-word_${{ github.ref_name }}_amd64.deb
path: /tmp
merge-multiple: true
- name: List /tmp
run: ls -Rhal /tmp
- name: Install Packages
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: |
apt update
apt install -t experimental reprepro git -y
echo "$GPG_PRIVATE_KEY" | tr '|' '\n' | gpg --batch --yes --import --verbose
gpg --verbose --pinentry-mode loopback -su 'manindark@own.manindark.me' --batch --passphrase "$GPG_PASSPHRASE" list
reprepro -b repository/debian includedeb bookworm /tmp/libpam-daily-word_${{ github.ref_name }}_amd64.deb
- uses: EndBug/add-and-commit@v9
with:
add: "repository/debian"
message: apt repository update
committer_name: GitHub Actions
committer_email: 41898282+github-actions[bot]@users.noreply.github.com