-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (46 loc) · 1.32 KB
/
Copy pathrelease.yml
File metadata and controls
47 lines (46 loc) · 1.32 KB
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
name: Release
on:
release:
types: [ published ]
jobs:
send-email:
name: Send release Email
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Decode configuration
env:
CONFIG: ${{ secrets.RELEASE_AUTOMATOR_BASE64_CONFIG }}
run: |
echo $CONFIG | base64 --decode > release.yaml
- name: Run release-automator
uses: unzerdev/unzer-tech-toolbox/.github/actions/release-changelog@main
with:
command: mail
version: ${{github.ref_name}}
generate-tweet:
name: Generate tweet
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Decode configuration
env:
CONFIG: ${{ secrets.RELEASE_AUTOMATOR_BASE64_CONFIG }}
run: |
echo $CONFIG | base64 --decode > release.yaml
- name: Run release-automator
uses: unzerdev/unzer-tech-toolbox/.github/actions/release-changelog@main
with:
command: tweet
version: ${{github.ref_name}}
- name: Copy out tweet file
run: |
sudo cp target/tweet.txt tweet.txt
- name: Attach release notes
uses: actions/upload-artifact@v3
with:
name: tweet
path: tweet.txt
retention-days: 5