summaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
blob: b08bac4ca627b77ccfdc082529d68ba1db36ccb2 (plain)
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
name: Release

on:
  push:
    tags:
      - boost-*

jobs:
  make-release:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
        with:
          submodules: true

      - name: Create archives
        run: |
          cd ..
          cp -a ${{ github.event.repository.name }} ${{ github.ref_name }}
          rm -rf ${{ github.ref_name }}/.git
          zip -q ${{ github.ref_name }}.zip -r ${{ github.ref_name }}
          tar -czf ${{ github.ref_name }}.tar.gz ${{ github.ref_name }}

      - uses: softprops/action-gh-release@v1
        with:
          files: |
            ../${{ github.ref_name }}.zip
            ../${{ github.ref_name }}.tar.gz