generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1.09 KB
/
released.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
name: Released
on:
release:
types: [ released ]
jobs:
notify:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: snow-actions/[email protected]
with:
relays: ${{ vars.NOSTR_RELAYS }}
private-key: ${{ secrets.NOSTR_PRIVATE_KEY }}
content: |
Release ${{ github.repository }} ${{ github.event.release.name }}
${{ github.event.release.html_url }}
tags: |
- ["proxy", "${{ github.event.release.html_url }}", "web"]
user-status:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- run: echo "expiration=$(date +%s --date '12 hours')" >> $GITHUB_ENV
- uses: snow-actions/[email protected]
with:
relays: ${{ vars.NOSTR_RELAYS }}
private-key: ${{ secrets.NOSTR_PRIVATE_KEY }}
kind: 30315
content: |
Release ${{ github.repository }} ${{ github.event.release.name }}
tags: |
- ["d", "general"]
- ["r", "${{ github.event.release.html_url }}"]
- ["expiration", "${{ env.expiration }}"]