File: release_tarball.yml

package info (click to toggle)
tinyproxy 1.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 912 kB
  • sloc: ansic: 6,361; sh: 359; perl: 351; makefile: 190; awk: 4
file content (61 lines) | stat: -rw-r--r-- 1,813 bytes parent folder | download | duplicates (2)
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
58
59
60
61
name: Generate Source Tarball

# Trigger whenever a release is created
on:
  release:
    types:
      - created

jobs:
  build:
    name: build
    runs-on: ubuntu-latest
    steps:

    - uses: actions/checkout@v2
      with:
        submodules: recursive

    - name: archive
      id: archive
      run: |
        sudo apt install -y gperf
        rm -rf .git
        autoreconf -i
        VERSION=$(cat VERSION)
        PKGNAME="tinyproxy-$VERSION"
        ./configure
        make dist
        echo "::set-output name=tarball_xz::${PKGNAME}.tar.xz"
        echo "::set-output name=tarball_gz::${PKGNAME}.tar.gz"
        echo "::set-output name=tarball_bz2::${PKGNAME}.tar.bz2"

    - name: upload tarball_xz
      uses: actions/upload-release-asset@v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        upload_url: ${{ github.event.release.upload_url }}
        asset_path: ./${{ steps.archive.outputs.tarball_xz }}
        asset_name: ${{ steps.archive.outputs.tarball_xz }}
        asset_content_type: application/x-xz

    - name: upload tarball_gz
      uses: actions/upload-release-asset@v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        upload_url: ${{ github.event.release.upload_url }}
        asset_path: ./${{ steps.archive.outputs.tarball_gz }}
        asset_name: ${{ steps.archive.outputs.tarball_gz }}
        asset_content_type: application/x-gzip

    - name: upload tarball_bz2
      uses: actions/upload-release-asset@v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        upload_url: ${{ github.event.release.upload_url }}
        asset_path: ./${{ steps.archive.outputs.tarball_bz2 }}
        asset_name: ${{ steps.archive.outputs.tarball_bz2 }}
        asset_content_type: application/x-bzip2