Release #12
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: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
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: | | |
cd .. | |
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/ | |
- name: Delete Previous Latest release | |
run: | | |
gh release delete latest | |
- name: Release Tar File | |
run: | | |
gh release create ${{ env.DATE }} *tar.gz checksum --title "TCET-Linux Wallpaper" | |
- name: Release Tar File with latest | |
run: | | |
gh release create latest *tar.gz checksum --latest --title "TCET-Linux Wallpaper" |