Modify build.yml to set commit SHA and dist

Updated the GitHub Actions workflow to include a distribution file with the commit SHA.
This commit is contained in:
2fort sink
2026-02-07 20:07:56 -03:00
committed by GitHub
parent 574c248d68
commit c70fd82e60

View File

@@ -10,7 +10,7 @@ jobs:
build:
runs-on: ubuntu-latest
# Minimal devkitA64 container, apparently dkp-toolchain isn't needed?
# Minimal devkitA64 container
container:
image: devkitpro/devkita64:20251231
@@ -47,9 +47,12 @@ jobs:
# -------------------------------------------------
# Get short commit SHA
# -------------------------------------------------
- name: Set commit SHA
- name: Set commit SHA & dist
id: vars
run: echo "SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
run: |
echo "SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
echo $SHORT_SHA > dist/.commit
echo $GITHUB_SHA >> dist/.commit
- name: Clone Atmosphere
run: git clone --depth=1 --single-branch https://github.com/Atmosphere-NX/Atmosphere.git atmosphere -b $(cat ams_ver.txt)