Skip to content

Commit

Permalink
upload pkg action
Browse files Browse the repository at this point in the history
fix github action for deb/rpm packages

fix github action for deb/rpm packages

fix github action pkg

fix github action pkg

fix github action pkg

fix github action pkg

fix github action pkg

fix github action pkg

fix github action pkg

fix github action pkg

fix github action pkg

fix github action pkg

fix github action pkg
  • Loading branch information
nikhilty committed Dec 15, 2022
1 parent 0cf46f8 commit b24ff35
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 31 deletions.
55 changes: 26 additions & 29 deletions .github/workflows/pkg.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Packaging

on:
release:
types: [published]
workflow_dispatch:
inputs:
versionString:
description: "The version semver string like 0.1.14"
required: true

jobs:
deb:
Expand Down Expand Up @@ -53,12 +56,20 @@ jobs:
run: |
# do not use exit codes while errors occured
lintian -v target/${{ matrix.target }}/debian/*.deb || true
- name: Upload package
uses: actions/upload-artifact@v3
- name: Fetch latest release
id: fetch-latest-release
uses: thebritican/[email protected]
with:
name: akr-deb
path: |
target/${{ matrix.target }}/debian/*.deb
github_token: ${{ github.token }}
- name: Upload deb asset to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.fetch-latest-release.outputs.upload_url }}
asset_path: target/${{ matrix.target }}/debian/akr_${{ github.event.inputs.versionString }}_amd64.deb
asset_name: "akr_${{github.event.inputs.versionString}}_amd64.deb"
asset_content_type: application/vnd.debian.binary-package
rpm:
name: RPM package
env:
Expand Down Expand Up @@ -127,31 +138,17 @@ jobs:
run: |
# do not use exit codes while errors occured
rpmlint target/generate-rpm/akr-*.rpm || true
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: akr-rpm
path: |
target/generate-rpm/akr-*.rpm
update_release:
needs: [deb, rpm]
runs-on: ubuntu-20.04
steps:
- name: Upload deb asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch latest release
id: fetch-latest-release
uses: thebritican/[email protected]
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./akr-deb/akr_${{ github.event.release.tag_name }}_amd64.deb
asset_name: "akr_${{github.event.release.tag_name}}_amd64.deb"
asset_content_type: application/vnd.debian.binary-package
- name: Upload rpm asset
github_token: ${{ github.token }}
- name: Upload rpm asset to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ github.event.release.upload_url }}
asset_path: ./akr-rpm/akr-${{ github.event.release.tag_name}}-1.x86_64.rpm
asset_name: "akr_${{github.event.release.tag_name}}-1_amd64_fedora.rpm"
upload_url: ${{ steps.fetch-latest-release.outputs.upload_url }}
asset_path: target/generate-rpm/akr-${{ github.event.inputs.versionString}}-1.x86_64.rpm
asset_name: "akr_${{github.event.inputs.versionString}}-1_centos7.rpm"
asset_content_type: application/octet-stream
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/kr/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "akr"
description = "Akamai MFA Developer CLI and SSH Agent"
version = "1.1.0"
version = "1.1.1"
authors = ["Alex Grinman <[email protected]>"]
edition = "2018"
license = "All Rights Reserved, Akamai Technologies"
Expand Down

0 comments on commit b24ff35

Please sign in to comment.