27 lines
579 B
YAML
27 lines
579 B
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
package:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: stage artifact
|
|
run: |
|
|
mkdir -p dist
|
|
cp bin/shx-upload dist/shx-upload
|
|
chmod +x dist/shx-upload
|
|
tar -C dist -czf shx-helper-${GITHUB_REF_NAME}.tar.gz shx-upload
|
|
|
|
- name: upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: shx-helper-${{ github.ref_name }}
|
|
path: shx-helper-${{ github.ref_name }}.tar.gz
|