Skip to content

Commit

Permalink
Refactor release workflow to support beta versions and update install…
Browse files Browse the repository at this point in the history
…ation instructions
  • Loading branch information
maizied.majumder committed Oct 24, 2024
1 parent 6ee5a7f commit bfdcf5c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ jobs:

- name: Tag the release version
id: tag_version
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} # Use your new PAT secret
run: |
# Fetch the latest tag, if none found, start with v0.0.0
TAG=$(git tag -l | tail -n 1)
Expand Down
58 changes: 29 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Automation to Make Releases

on:
push:
branches:
- "main"
tags:
- 'v*.*.*-beta'
workflow_run:
workflows: ["Linpad application"] # Name of the first workflow
types:
- completed

jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
create_release:
if: ${{ github.event.workflow_run.conclusion == 'success' }} # Only run if the previous workflow succeeded
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download .deb package
uses: actions/download-artifact@v3
with:
name: linpad-deb-package
- name: Download .deb package
uses: actions/download-artifact@v3
with:
name: linpad-deb-package

- name: Get current version
id: get_version
run: |
TAG=$(git describe --tags --abbrev=0)
VERSION=${TAG//v/}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Get current version
id: get_version
run: |
TAG=$(git describe --tags --abbrev=0)
VERSION=${TAG//v/}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.VERSION }}
name: ${{ env.VERSION }}
body: "Release of Linpad application version ${{ env.VERSION }}"
files: linpad.deb # Adjusted the path to the downloaded artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.VERSION }}
name: ${{ env.VERSION }}
body: "Release of Linpad application version ${{ env.VERSION }}"
files: linpad.deb # Adjusted the path to the downloaded artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the default token for release

0 comments on commit bfdcf5c

Please sign in to comment.