mirror of
https://github.com/boostorg/boost.git
synced 2026-06-01 01:03:08 +08:00
32 lines
797 B
YAML
32 lines
797 B
YAML
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 }}
|
|
tar -cJf ${{ github.ref_name }}.tar.xz ${{ github.ref_name }}
|
|
|
|
- uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: |
|
|
../${{ github.ref_name }}.zip
|
|
../${{ github.ref_name }}.tar.gz
|
|
../${{ github.ref_name }}.tar.xz
|