-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.1 KB
/
ci.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
name: Main
on:
push:
tags:
- "v*.*.*"
jobs:
buildX:
permissions:
contents: write
discussions: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get tags
run: git fetch --tags origin
- name: Build
run: echo ${{ github.sha }} > Release.txt
- name: Logs
run: git log -n 10 > foobar.txt
- name: Cat Logs
run: cat foobar.txt
- name: Last Release
run: git describe --tags
- name: Last Release 2
run: git describe --tags --abbrev=0 ${{ github.ref_name }}^
- name: ReleaseNotes
run: git log $(git describe --tags --abbrev=0 ${{github.ref_name}}^)..HEAD --pretty=format:'%h - %s' > ${{ github.workspace }}-CHANGELOG.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
# body: "Automatic Release..."
body_path: ${{ github.workspace }}-CHANGELOG.txt
files: |
Release.txt
${{ github.workspace }}-CHANGELOG.txt
LICENSE