-
-
Notifications
You must be signed in to change notification settings - Fork 51
50 lines (39 loc) · 1.23 KB
/
tarball-full.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
name: Full sources
on:
release:
types: [published]
workflow_dispatch:
jobs:
tar:
name: Full sources asset
runs-on: ubuntu-latest
steps:
- name: Install Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install git-archive-all
run: pip install git-archive-all
- name: Check out repository
uses: actions/checkout@v2
with:
submodules: true
- name: Get release version
id: get_version
uses: battila7/get-version-action@v2
- name: Create full tarball
run: git-archive-all -9 alr-${{ steps.get_version.outputs.version-without-v }}.zip
- name: Retrieve upload URL for the release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: alr-${{ steps.get_version.outputs.version-without-v }}.zip
asset_name: alr-${{ steps.get_version.outputs.version-without-v }}-full-sources.zip
asset_content_type: application/zip