-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 2.27 KB
/
release.yaml
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
49
50
51
52
53
54
55
56
57
name: Release Templates
on:
push:
tags:
- "*"
jobs:
build:
name: Publish binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
shell: bash
run: |
tar -czvf dart-${{ github.ref_name }}.tar.gz dart && mv dart-${{ github.ref_name }}.tar.gz artifacts/
tar -czvf elixir-${{ github.ref_name }}.tar.gz elixir && mv elixir-${{ github.ref_name }}.tar.gz artifacts/
tar -czvf go-${{ github.ref_name }}.tar.gz go && mv go-${{ github.ref_name }}.tar.gz artifacts/
tar -czvf java-spring-${{ github.ref_name }}.tar.gz java-spring && mv java-spring-${{ github.ref_name }}.tar.gz artifacts/
tar -czvf java-std-${{ github.ref_name }}.tar.gz java-std && mv java-std-${{ github.ref_name }}.tar.gz artifacts/
tar -czvf nodejs-${{ github.ref_name }}.tar.gz nodejs && mv nodejs-${{ github.ref_name }}.tar.gz artifacts/
tar -czvf python-${{ github.ref_name }}.tar.gz rust && mv python-${{ github.ref_name }}.tar.gz artifacts/
tar -czvf rust-${{ github.ref_name }}.tar.gz rust && mv rust-${{ github.ref_name }}.tar.gz artifacts/
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
includeInvalidCommits: true
- name: Upload binaries to release
if: always()
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/*.tar.gz
tag: ${{ github.ref }}
overwrite: true
file_glob: true
body: ${{ steps.changelog.outputs.changes }}
- name: Cleanup
shell: bash
run: |
rm -rf artifacts/dart-${{ github.ref_name }}.tar.gz
rm -rf artifacts/elixir-${{ github.ref_name }}.tar.gz
rm -rf artifacts/go-${{ github.ref_name }}.tar.gz
rm -rf artifacts/java-spring-${{ github.ref_name }}.tar.gz
rm -rf artifacts/java-std-${{ github.ref_name }}.tar.gz
rm -rf artifacts/nodejs-${{ github.ref_name }}.tar.gz
rm -rf artifacts/python-${{ github.ref_name }}.tar.gz
rm -rf artifacts/rust-${{ github.ref_name }}.tar.gz