-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (46 loc) · 1.49 KB
/
main.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
42
43
44
45
46
47
48
49
50
51
---
name: 'Release Formatting'
on:
push:
tags:
- '*'
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Extract tag name
id: tag
uses: actions/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return context.payload.ref
.replace(/\/refs\/tags\//, '')
.replace(/refs\/tags\//, '');
- name: Build source artifact
run: |
mkdir -p ../rocky-logos-${{ steps.tag.outputs.result }} &&
cp -r . ../rocky-logos-${{ steps.tag.outputs.result }} &&
mv ../rocky-logos-${{ steps.tag.outputs.result }} . &&
tar cfJ rocky-logos-${{ steps.tag.outputs.result }}.tar.xz rocky-logos-${{ steps.tag.outputs.result }}
- name: Generate Release
uses: ncipollo/release-action@v1
with:
token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
artifacts: "*.tar.xz"
# - name: Generate release
# uses: docker://antonyurchenko/git-release:v3
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DRAFT_RELEASE: "false"
# PRE_RELEASE: "false"
# CHANGELOG_FILE: "none"
# ALLOW_EMPTY_CHANGELOG: "false"
# ALLOW_TAG_PREFIX: "true"
# #TAG_PREFIX_REGEX: '(0|[1-9]\d*)?'
# with:
# args: |
# rocky-logos-${{ steps.tag.outputs.result }}.tar.xz