diff options
author | Peter Dimov <pdimov@gmail.com> | 2022-11-13 00:06:41 +0200 |
---|---|---|
committer | Peter Dimov <pdimov@gmail.com> | 2022-11-13 00:07:55 +0200 |
commit | a924af52505e75439ba702a9ec41fe50eb2319d0 (patch) | |
tree | 23a3cce3cc60d7b703a81c4a5d351419fc322bf8 /.github | |
parent | 1dbe0575b6c16696a6e2f52382a64f46121b269f (diff) | |
download | boost-a924af52505e75439ba702a9ec41fe50eb2319d0.tar.gz |
Add .github/workflows/release.yml
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..796b1a674f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,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.event.repository.name }}-${{ github.ref_name }}.zip -r ${{ github.ref_name }} + tar -czf ${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz ${{ github.ref_name }} + + - uses: softprops/action-gh-release@v1 + with: + files: | + ../${{ github.event.repository.name }}-${{ github.ref_name }}.zip + ../${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz |