-
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.
Refactor release workflow to tag and push beta versions
- Loading branch information
maizied.majumder
committed
Oct 24, 2024
1 parent
ec9ba56
commit 4909ac6
Showing
3 changed files
with
34 additions
and
33 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
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
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 |
---|---|---|
@@ -1,37 +1,38 @@ | ||
name: Automation to Make Releases | ||
|
||
on: | ||
push: | ||
branches: | ||
- "Automatic-release-deb-file-in-github" | ||
tags: | ||
- 'v*.*.*-beta' | ||
push: | ||
branches: | ||
- "Automatic-release-deb-file-in-github" | ||
tags: | ||
- 'v*.*.*-beta' | ||
|
||
jobs: | ||
create_release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
create_release: | ||
runs-on: ubuntu-latest | ||
|
||
- name: Download .deb package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: linpad-deb-package | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 # Updated to v3 | ||
|
||
- name: Get current version | ||
id: get_version | ||
run: | | ||
TAG=$(git describe --tags --abbrev=0) | ||
VERSION=${TAG//v/} | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Download .deb package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: linpad-deb-package | ||
|
||
- 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: output/linpad.deb | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- 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: output/linpad.deb # Ensure this path exists | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |