Skip to content

Release ob2-1-1

Release ob2-1-1 #2

Workflow file for this run

name: release
on:
push:
tags:
- v[0-9]*-[0-9]*
env:
SKF_SET_NAME: "${{ github.event.repository.name }}"
jobs:
skf-archive:
runs-on: ubuntu-latest
steps:
- name: Checkout sk set
uses: actions/checkout@v4
- name: Get version number
run: |
GIT_TAG=$(git describe --tags --match 'v[0-9]*-[0-9]*')
SKF_SET_VERSION=${GIT_TAG#v}"
echo "SKF_SET_VERSION=${SKF_SET_VERSION} >> ${GITHUB_ENV}
echo "ARCHIVE_NAME=${SKF_SET_NAME}-${SKF_SET_VERSION}" >> ${GITHUB_ENV}
- name: Create archive
run: |
mkdir -p _build/${ARCHIVE_NAME}
cp $(find . -maxdepth 1 -not -type 'd') _build/${ARCHIVE_NAME}
cp -a skfiles/* _build/${ARCHIVE_NAME}
tar -C _build -c -v -J -f ${ARCHIVE_NAME}.tar.xz ${ARCHIVE_NAME}
mkdir -p _build/${ARCHIVE_NAME}-extras
cp -r extras/* _build/${ARCHIVE_NAME}-extras
tar -C _build -c -v -J -f ${ARCHIVE_NAME}-extras.tar.xz ${ARCHIVE_NAME}-extras
- name: Create release
uses: softprops/action-gh-release@v2
with:
name: ${{ env.ARCHIVE_NAME }}
preserve_order: True
files: |
${{ env.ARCHIVE_NAME }}.tar.xz
${{ env.ARCHIVE_NAME }}-extras.tar.xz
body_path: RELEASE.md