Skip to content

Commit 6bddbe8

Browse files
committed
Update GitHub releases to have a nicer name (date based)
1 parent 07039b5 commit 6bddbe8

File tree

3 files changed

+35
-23
lines changed

3 files changed

+35
-23
lines changed

.github/workflows/cross.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
- name: Download Pidgin
3030
if: steps.pidgin-cache.outputs.cache-hit != 'true'
3131
run: |
32-
curl -L https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.1/pidgin-2.14.1.tar.bz2/download -o pidgin.tar.bz2
32+
curl --http1.1 -L https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.1/pidgin-2.14.1.tar.bz2/download -o pidgin.tar.bz2
3333
tar -xf pidgin.tar.bz2
3434
mv pidgin-2.14.1 pidgin
35-
curl -L https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.1/pidgin-2.14.1-win32-bin.zip/download -o pidgin-win32bin.zip
35+
curl --http1.1 -L https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.1/pidgin-2.14.1-win32-bin.zip/download -o pidgin-win32bin.zip
3636
unzip pidgin-win32bin.zip
3737
cp pidgin-2.14.1-win32bin/libpurple.dll pidgin/libpurple/
3838
@@ -47,19 +47,19 @@ jobs:
4747
if: steps.win32-cache.outputs.cache-hit != 'true'
4848
run: |
4949
mkdir win32-dev
50-
curl -L http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib-dev_2.28.8-1_win32.zip -o glib-dev.zip
50+
curl --http1.1 -L http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib-dev_2.28.8-1_win32.zip -o glib-dev.zip
5151
unzip glib-dev.zip -d win32-dev/glib-2.28.8
52-
curl -L http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-dev_0.18.1.1-2_win32.zip -o gettext-runtime.zip
52+
curl --http1.1 -L http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-dev_0.18.1.1-2_win32.zip -o gettext-runtime.zip
5353
unzip gettext-runtime.zip -d win32-dev/glib-2.28.8
54-
curl -L http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-dev_1.2.5-2_win32.zip -o zlib-dev.zip
54+
curl --http1.1 -L http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-dev_1.2.5-2_win32.zip -o zlib-dev.zip
5555
unzip zlib-dev.zip -d win32-dev/glib-2.28.8
5656
5757
cd win32-dev
58-
curl -L https://data.imfreedom.org/pidgin/win32/nss-3.24-nspr-4.12.tar.gz -o nss-3.24-nspr-4.12.tar.gz
58+
curl --http1.1 -L https://data.imfreedom.org/pidgin/win32/nss-3.24-nspr-4.12.tar.gz -o nss-3.24-nspr-4.12.tar.gz
5959
tar -xf nss-3.24-nspr-4.12.tar.gz
60-
curl -L https://github.com/jgeboski/purple-facebook/releases/download/downloads/json-glib-0.14.tar.gz -o json-glib.tar.gz
60+
curl --http1.1 -L https://github.com/jgeboski/purple-facebook/releases/download/downloads/json-glib-0.14.tar.gz -o json-glib.tar.gz
6161
tar -xf json-glib.tar.gz
62-
curl -L https://github.com/EionRobb/purple-discord/files/13785079/qrencode-4.1.1.zip -o qrencode.zip
62+
curl --http1.1 -L https://github.com/EionRobb/purple-discord/files/13785079/qrencode-4.1.1.zip -o qrencode.zip
6363
unzip qrencode.zip
6464
cd ..
6565
@@ -73,24 +73,28 @@ jobs:
7373
make libdiscord.dll
7474
7575
- name: archive
76-
if: ${{ !env.ACT }}
76+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !env.ACT
7777
uses: actions/upload-artifact@v4
7878
with:
7979
name: plugin
8080
path: lib*.dll
8181

82+
- name: Set date
83+
id: date
84+
run: echo "DATE=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
85+
8286
- name: release
83-
if: ${{ !env.ACT }}
87+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !env.ACT
8488
uses: ncipollo/release-action@v1
8589
with:
8690
artifacts: lib*.dll
87-
tag: nightly-${{ github.sha }}
88-
name: Nightly ${{ github.sha }}
91+
tag: daily-${{ steps.date.outputs.DATE }}
92+
name: Daily ${{ steps.date.outputs.DATE }}
8993
allowUpdates: true
9094
makeLatest: true
9195

9296
- name: attest
93-
if: ${{ !env.ACT }}
97+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !env.ACT
9498
uses: actions/attest-build-provenance@v1
9599
with:
96100
subject-path: lib*.dll

.github/workflows/linux-arm64.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,28 @@ jobs:
2828
mv libdiscord.so libdiscord-arm64.so
2929
3030
- name: archive
31-
if: ${{ !env.ACT }}
31+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !env.ACT
3232
uses: actions/upload-artifact@v4
3333
with:
3434
name: plugin
3535
path: lib*.so
3636

37+
- name: Set date
38+
id: date
39+
run: echo "DATE=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
40+
3741
- name: release
38-
if: ${{ !env.ACT }}
42+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !env.ACT
3943
uses: ncipollo/release-action@v1
4044
with:
4145
artifacts: lib*.so
42-
tag: nightly-${{ github.sha }}
43-
name: Nightly ${{ github.sha }}
46+
tag: daily-${{ steps.date.outputs.DATE }}
47+
name: Daily ${{ steps.date.outputs.DATE }}
4448
allowUpdates: true
4549
makeLatest: true
4650

4751
- name: attest
48-
if: ${{ !env.ACT }}
52+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !env.ACT
4953
uses: actions/attest-build-provenance@v1
5054
with:
5155
subject-path: lib*.so

.github/workflows/linux.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,28 @@ jobs:
2626
run: make
2727

2828
- name: archive
29-
if: ${{ !env.ACT }}
29+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !env.ACT
3030
uses: actions/upload-artifact@v4
3131
with:
3232
name: plugin
3333
path: lib*.so
3434

35+
- name: Set date
36+
id: date
37+
run: echo "DATE=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
38+
3539
- name: release
36-
if: ${{ !env.ACT }}
40+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !env.ACT
3741
uses: ncipollo/release-action@v1
3842
with:
3943
artifacts: lib*.so
40-
tag: nightly-${{ github.sha }}
41-
name: Nightly ${{ github.sha }}
44+
tag: daily-${{ steps.date.outputs.DATE }}
45+
name: Daily ${{ steps.date.outputs.DATE }}
4246
allowUpdates: true
4347
makeLatest: true
4448

4549
- name: attest
46-
if: ${{ !env.ACT }}
50+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !env.ACT
4751
uses: actions/attest-build-provenance@v1
4852
with:
4953
subject-path: lib*.so

0 commit comments

Comments
 (0)