ci: bump dagger version (#42) #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
push: | |
tags: ["**/v[0-9]+.[0-9]+.[0-9]+"] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Extract module name and version | |
id: extract | |
run: | | |
echo "module=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT | |
echo "version=$(echo $GITHUB_REF | cut -d / -f 4)" >> $GITHUB_OUTPUT | |
- name: Fail if module name is empty | |
run: | | |
if [ -z "${{ steps.extract.outputs.module }}" ]; then | |
echo "Module name is empty" | |
exit 1 | |
fi | |
- name: Fail if version is empty | |
run: | | |
if [ -z "${{ steps.extract.outputs.version }}" ]; then | |
echo "Version is empty" | |
exit 1 | |
fi | |
- name: Publish module with tagged version | |
uses: dagger/dagger-for-github@fbdf21fc13e898ec99d47d312ded6fa4bda3691d # v6.2.0 | |
with: | |
workdir: ${{ steps.extract.outputs.module }} | |
verb: publish | |
version: "0.12.2" |