-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ on: | |
types: [published] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
generate-debian-package: | ||
name: Generate Debian package and publish to APT repository | ||
|
@@ -24,20 +27,12 @@ jobs: | |
env: | ||
VERSION: ${{ steps.get_release.outputs.tag_name }} | ||
|
||
- name: Get release | ||
id: get_release | ||
uses: leahlundqvist/[email protected] | ||
with: | ||
tag_name: ${{ steps.generate_debian_package.outputs.MODULE_VERSION }} | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Upload Debian Package to releases | ||
uses: actions/[email protected] | ||
uses: Asthowen/UploadReleaseAsset@main | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
release_tag: ${{ steps.generate_debian_package.outputs.MODULE_VERSION }} | ||
asset_path: ./deb_dist/python3-alphacodersdownloader_${{ steps.generate_debian_package.outputs.MODULE_VERSION }}-1_all.deb | ||
asset_name: alphacoders-downloader_${{ steps.generate_debian_package.outputs.MODULE_VERSION }}-1_all.deb | ||
asset_content_type: application/octet-stream | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ on: | |
types: [published] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
generate-rpm-package: | ||
name: Generate RPM package and publish to RPM repository | ||
|
@@ -25,21 +28,12 @@ jobs: | |
env: | ||
VERSION: ${{ steps.get_release.outputs.tag_name }} | ||
|
||
- name: Get release | ||
id: get_release | ||
uses: leahlundqvist/[email protected] | ||
with: | ||
tag_name: ${{ steps.generate_rpm_package.outputs.MODULE_VERSION }} | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Upload RPM Package to releases | ||
id: upload_rpm_package | ||
uses: actions/[email protected] | ||
uses: Asthowen/UploadReleaseAsset@main | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
release_tag: ${{ steps.generate_rpm_package.outputs.MODULE_VERSION }} | ||
asset_path: ./dist/AlphacodersDownloader-${{ steps.generate_rpm_package.outputs.MODULE_VERSION }}-1.noarch.rpm | ||
asset_name: AlphacodersDownloader-${{ steps.generate_rpm_package.outputs.MODULE_VERSION }}-1.noarch.rpm | ||
asset_content_type: application/octet-stream | ||
|