Release #2
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
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: | | |
ls -la | |
cd .. | |
ls -la | |
tar -czf tcet-linux-welcome.tar.gz --exclude=tcet-linux-welcome.tar.gz . | |
touch checksum | |
sha256sum tcet-linux-welcome.tar.gz > checksum | |
mv checksum tcet-linux-welcome/ | |
mv tcet-linux-welcome.tar.gz tcet-linux-welcome/ | |
ls -la | |
- 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 Welcome" | |
tag: latest | |
- name: Release Tar File | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "*.tar.gz,checksum" | |
generateReleaseNotes: false | |
name: "TCET-Linux Welcome" | |
tag: ${{ env.DATE }} |