Skip to content

Migrate from docker images to micromamba. #28

Migrate from docker images to micromamba.

Migrate from docker images to micromamba. #28

Workflow file for this run

name: GitHub release
on:
pull_request:
push:
branches:
- "trunk"
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
defaults:
run:
shell: bash
jobs:
release:
name: Publish [GitHub]
runs-on: ubuntu-latest
steps:
- name: Determine version number
id: version
run: |
TAG=${{ github.ref_name }}
# Remove v from start of tag name
VERSION=${TAG#v}
# Replace / with - in merge names
VERSION=${VERSION//\//-}
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
echo "name=${{ github.event.repository.name }}-${VERSION}" >> "$GITHUB_OUTPUT"
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
path: ${{ steps.version.outputs.name }}
- name: Remove .git
run: |
rm -rf ${{ steps.version.outputs.name }}/.git
ls -laR ${{ steps.version.outputs.name }}
- name: Tar source
run: tar --zstd -cvf ${{ steps.version.outputs.name }}.tar.zst ${{ steps.version.outputs.name }}
- name: Create release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
files: "*.tar.zst"
name: ${{ steps.version.outputs.version }}
generate_release_notes: True
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}