-
-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (39 loc) · 1.29 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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-wallpaper.tar.gz
tar -czf tcet-linux-wallpaper.tar.gz --exclude=tcet-linux-wallpaper.tar.gz .
touch checksum
sha256sum tcet-linux-wallpaper.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
uses: ncipollo/release-action@v1
with:
artifacts: "*.tar.gz,sha256sum.txt"
generateReleaseNotes: false
name: "TCET-Linux Wallpaper"
tag: ${{ env.DATE }}
- name: Release Tar File with latest
uses: ncipollo/release-action@v1
with:
artifacts: "*.tar.gz,sha256sum.txt"
generateReleaseNotes: false
name: "TCET-Linux Wallpaper"
tag: latest