@@ -0,0 +1,23 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
smoke:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: install deps
|
||||
run: sudo apt-get update && sudo apt-get install -y jq
|
||||
|
||||
- name: bash syntax
|
||||
run: bash -n bin/shx-upload tests/smoke.sh
|
||||
|
||||
- name: smoke test
|
||||
run: ./tests/smoke.sh
|
||||
@@ -0,0 +1,26 @@
|
||||
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
|
||||
Reference in New Issue
Block a user