Skip to content

Publish

Publish #6

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build-cli:
uses: ./.github/workflows/build_cli_artifacts.yml
release:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: [build-cli]
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: bin
- name: Generate Checksum
run: |
ARTIFACTS="bin"
find "$ARTIFACTS" -type f -exec sha256sum '{}' + | sed 's, .*/, ,' > SHA256SUMS.txt
- name: Create pre-release
uses: softprops/action-gh-release@v1
with:
files: |
bin/*/xmodits-*
SHA256SUMS.txt
draft: true
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}