mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 02:25:09 +00:00
Update release action.
This commit is contained in:
parent
475b859e3f
commit
415c577823
38
.github/workflows/publish-appimage.yml
vendored
38
.github/workflows/publish-appimage.yml
vendored
@ -9,6 +9,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
discussions: write
|
||||||
steps:
|
steps:
|
||||||
- run: sudo apt-get -qq update
|
- run: sudo apt-get -qq update
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@ -55,37 +58,16 @@ jobs:
|
|||||||
- name: Archive AppImage
|
- name: Archive AppImage
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: conky-appimage
|
name: conky-appimage-amd64
|
||||||
path: conky*.AppImage
|
path: conky*.AppImage
|
||||||
- name: Get Name of Artifact
|
|
||||||
run: |
|
|
||||||
ARTIFACT_PATHNAME=$(ls conky*.AppImage | head -n 1)
|
|
||||||
ARTIFACT_NAME=$(basename $ARTIFACT_PATHNAME)
|
|
||||||
echo "ARTIFACT_PATHNAME=${ARTIFACT_PATHNAME}" >> $GITHUB_ENV
|
|
||||||
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
|
|
||||||
- name: Print Name of Artifact
|
|
||||||
run: |
|
|
||||||
echo ARTIFACT_PATHNAME=${{ env.ARTIFACT_PATHNAME }}
|
|
||||||
echo ARTIFACT_NAME=${{ env.ARTIFACT_NAME }}
|
|
||||||
- name: Create Conky Release
|
- name: Create Conky Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
|
||||||
release_name: Conky ${{ github.ref }}
|
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
- name: Upload Conky Release Asset
|
discussion_category_name: Announcement
|
||||||
id: upload-release-asset
|
generate_release_notes: true
|
||||||
uses: actions/upload-release-asset@v1
|
files: |
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
conky*.AppImage
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
|
||||||
asset_path: ${{ env.ARTIFACT_PATHNAME }}
|
|
||||||
asset_name: ${{ env.ARTIFACT_NAME }}
|
|
||||||
asset_content_type: application/x-executable
|
|
||||||
|
Loading…
Reference in New Issue
Block a user