Skip to content

Tag and Release

Tag and Release #5

Workflow file for this run

name: Tag and Release
on:
push:
branches:
- main
workflow_run:
workflows: ["Rust Multi-Arch Build"]
types: [completed]
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
- target: armv7-unknown-linux-gnueabihf
- target: aarch64-unknown-linux-gnu
steps:
- uses: actions/checkout@v4
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ matrix.target }}
path: target/${{ matrix.target }}
- name: Display structure of downloaded files
run: ls -R target
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
artifacts: |
target/*
body: ${{ steps.tag_version.outputs.changelog }}