Release #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release | |
on: | |
schedule: | |
- cron: '0 */6 * * *' | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
env: | |
CHECK: 0 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare | |
run: chmod +x ./release.sh | |
- name: Check for newer versions | |
run: ./release.sh --check || echo 'CHECK=1' >> "${GITHUB_ENV}" | |
shell: bash | |
- name: Install | |
if: ${{ env.CHECK == 1 }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y reprepro | |
- name: Download package | |
if: ${{ env.CHECK == 1 }} | |
run: ./release.sh --get | |
shell: bash | |
- name: Verify package | |
if: ${{ env.CHECK == 1 }} | |
run: ./release.sh --verify-hash | |
shell: bash | |
- name: Import GPG key | |
if: ${{ env.CHECK == 1 }} | |
run: ./release.sh --gpg | |
shell: bash | |
env: | |
GPG_KEY: ${{ secrets.GPG_KEY }} | |
- name: Update repository | |
if: ${{ env.CHECK == 1 }} | |
run: ./release.sh --repo | |
shell: bash | |
- name: Push | |
if: ${{ env.CHECK == 1 }} | |
run: ./release.sh --push | |
shell: bash | |
env: | |
SSH_KEY: ${{ secrets.SSH_KEY }} |