Simplify workflows #53
Workflow file for this run
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: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
release: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v6.2.0 | |
with: | |
gpg_private_key: "${{ secrets.GPG_PRIVATE_KEY }}" | |
passphrase: "${{ secrets.GPG_PASSPHRASE }}" | |
- name: "Archive zram-config" | |
run: | | |
export tag="${{ github.ref_name }}" | |
sudo apt-get install lzip | |
git ls-files --recurse-submodules | tar -cf zram-config-${tag}.tar --xform s:^:zram-config-${tag}/: --verbatim-files-from -T- | |
lzip --best --keep --verbose --verbose zram-config-${tag}.tar | |
gpg --detach-sign --armor zram-config-${tag}.tar.lz | |
gpg --verify zram-config-${tag}.tar.lz.asc zram-config-${tag}.tar.lz | |
unset tag | |
shell: bash | |
- uses: "softprops/action-gh-release@v2" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
generate_release_notes: true | |
make_latest: true | |
files: | | |
zram-config-*.tar.lz | |
zram-config-*.tar.lz.asc |