Skip to content

feat: v0.8.0, overhaul #30

feat: v0.8.0, overhaul

feat: v0.8.0, overhaul #30

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Ryan Cao <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Release
on:
push:
tags: ["v*.*.*"]
jobs:
build:
permissions:
id-token: write
attestations: write
uses: ./.github/workflows/build.yml
github:
name: GitHub Releases
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download artifacts
id: download
uses: actions/download-artifact@v4
with:
path: /tmp/artifacts
- name: Prepare assets
env:
ARTIFACTS: ${{ steps.download.outputs.download-path }}
id: prepare
run: |
asset_path="/tmp/assets"
mkdir -p "$asset_path"
for artifact in "$ARTIFACTS"/*/; do
basename "$artifact" | \
xargs -I {} zip -jr "$asset_path"/{}.zip "$artifact"
done
- name: Create release
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.ref_name }}
run: |
gh release create --draft --verify-tag "$TAG" /tmp/assets/*.zip