Skip to content

ci: add initial release workflow #7

ci: add initial release workflow

ci: add initial release workflow #7

Workflow file for this run

name: scallop-release
on:
push:
tags: [scallop-*]
workflow_dispatch:
jobs:
source:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
path: bash
- name: Create archive
run: |
RELEASE=${{ github.ref_name }}
mkdir ${RELEASE}
cp -av bash/* ${RELEASE}
tar -cv -I "xz -9 -T0" -f ${RELEASE}.tar.xz ${RELEASE}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: source
path: ./*.tar.xz
if-no-files-found: error
retention-days: 3
publish:
if: startsWith(github.ref, 'refs/tags/')
needs: source
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
files: artifacts/*.tar.xz
fail_on_unmatched_files: true