mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
c43eba8979
Bumps the github-actions-dependencies group with 1 update: [softprops/action-gh-release](https://github.com/softprops/action-gh-release). Updates `softprops/action-gh-release` from 2 to 2.6.1 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v2...v3) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: 2.6.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Release Builds
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*.*.*"
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
source:
|
|
name: Source Code Releasing
|
|
if: ${{ github.repository == 'mruby/mruby' }}
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 10
|
|
strategy:
|
|
fail-fast: false
|
|
steps:
|
|
- name: "Checkout ${{ github.ref_name }} ( ${{ github.sha }} )"
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Builds
|
|
id: builds
|
|
run: |
|
|
tagname="$GITHUB_REF_NAME"
|
|
packagename="mruby-$tagname"
|
|
destdir=packages
|
|
|
|
mkdir -p "$destdir"
|
|
git archive --format zip --prefix "$packagename/" -o "$destdir/$packagename.zip" "$GITHUB_REF"
|
|
git archive --format tar.gz --prefix "$packagename/" -o "$destdir/$packagename.tar.gz" "$GITHUB_REF"
|
|
gunzip -c "$destdir/$packagename.tar.gz" | xz > "$destdir/$packagename.tar.xz"
|
|
|
|
(
|
|
cd "$destdir" || exit
|
|
sha256sum -- * > .sha256
|
|
mv .sha256 "$packagename.sha256"
|
|
)
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v3
|
|
with:
|
|
draft: true
|
|
prerelease: ${{ contains(github.ref_name, '-rc') }}
|
|
body_path: NEWS
|
|
files: packages/*
|