-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from tcet-opensource/new-gh-action
Update release.yml
- Loading branch information
Showing
1 changed file
with
12 additions
and
22 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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -9,6 +12,8 @@ jobs: | |
|
||
permissions: | ||
contents: write | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -19,35 +24,20 @@ jobs: | |
|
||
- name: Building TCET Linux Welcome Tar file | ||
run: | | ||
ls -la | ||
cd .. | ||
ls -la | ||
touch tcet-linux-wallpaper.tar.gz | ||
tar -czf tcet-linux-wallpaper.tar.gz tcet-linux-wallpaper/ | ||
touch checksum | ||
sha256sum tcet-linux-wallpaper.tar.gz > checksum | ||
mv checksum tcet-linux-wallpaper/ | ||
mv tcet-linux-wallpaper.tar.gz tcet-linux-wallpaper/ | ||
ls -la | ||
- name: Delete Previous Latest release | ||
uses: dev-drprasad/[email protected] | ||
with: | ||
tag_name: latest | ||
github_token: ${{ secrets.PAT_TOKEN }} | ||
delete_release: true | ||
|
||
run: | | ||
gh release delete latest | ||
- name: Release Tar File | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "*.tar.gz,checksum" | ||
generateReleaseNotes: false | ||
name: "TCET-Linux Wallpaper" | ||
tag: ${{ env.DATE }} | ||
|
||
run: | | ||
gh release create ${{ env.DATE }} *tar.gz checksum --title "TCET-Linux Wallpaper" | ||
- name: Release Tar File with latest | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "*.tar.gz,checksum" | ||
generateReleaseNotes: false | ||
name: "TCET-Linux Wallpaper" | ||
tag: latest | ||
run: | | ||
gh release create latest *tar.gz checksum --latest --title "TCET-Linux Wallpaper" |