Release 0.3.0.pre4. #7
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: Build and Release Packages | |
on: | |
push: | |
tags: | |
- '*' # Trigger the workflow on push of any tag | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@main | |
- name: Extract Version | |
id: extract_version | |
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV | |
- name: Create DEB package | |
uses: burningalchemist/nfpm-action@v1 | |
id: deb-package | |
with: | |
nfpm_version: "2.40.0" | |
config: "nfpm.yaml" | |
packager: "deb" | |
- name: Create RPM package | |
uses: burningalchemist/nfpm-action@v1 | |
id: rpm-package | |
with: | |
nfpm_version: "2.40.0" | |
config: "nfpm.yaml" | |
packager: "rpm" | |
- name: Create RPM package | |
uses: burningalchemist/nfpm-action@v1 | |
id: archlinux-package | |
with: | |
nfpm_version: "2.40.0" | |
config: "nfpm.yaml" | |
packager: "archlinux" | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: Release ${{ github.ref }} | |
tag_name: ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload DEB package to release | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ${{ steps.deb-package.outputs.package }} | |
asset_name: sqlite-shell-lib_${{ env.VERSION }}_amd64.deb | |
asset_content_type: application/vnd.debian.binary-package | |
- name: Upload RPM package to release | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ${{ steps.rpm-package.outputs.package }} | |
asset_name: sqlite-shell-lib_${{ env.VERSION }}_amd64.rpm | |
asset_content_type: application/x-rpm | |
- name: Upload Archlinux package to release | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ${{ steps.archlinux-package.outputs.package }} | |
asset_name: sqlite-shell-lib_${{ env.VERSION }}_amd64.pkg.tar.zst | |
asset_content_type: application/zstd |