-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
ee2d358
commit f1512b6
Showing
1 changed file
with
50 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set current date as environment variable | ||
run: echo "DATE=`date +'%Y.%m.%d'`" >>$GITHUB_ENV | ||
|
||
- name: Building TCET Linux Welcome Tar file | ||
run: | | ||
touch tcet-linux-set-once.tar.gz | ||
tar -czf tcet-linux-set-once.tar.gz --exclude=tcet-linux-set-once.tar.gz . | ||
touch checksum | ||
sha256sum tcet-linux-set-once.tar.gz > checksum | ||
- name: Delete Previous Latest release | ||
uses: dev-drprasad/[email protected] | ||
with: | ||
tag_name: latest | ||
github_token: ${{ secrets.PAT_TOKEN }} | ||
delete_release: true | ||
|
||
- name: Release Tar File with latest | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "*.tar.gz,checksum" | ||
generateReleaseNotes: false | ||
name: "TCET-Linux-set-once" | ||
tag: latest | ||
|
||
- name: Release Tar File | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "*.tar.gz,checksum" | ||
generateReleaseNotes: false | ||
name: "TCET-Linux-set-once" | ||
tag: ${{ env.DATE }} | ||
|
||
|