Files
os/.github/workflows/release.yml
syui 9eeabc1fd7
Some checks failed
build and push image / Release (push) Failing after 26s
fix docker
2026-02-27 18:09:43 +09:00

47 lines
1.0 KiB
YAML

name: release
on:
push:
branches:
- main
permissions:
contents: write
env:
APP_TOKEN: ${{ secrets.APP_TOKEN }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
container:
image: archlinux
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install build dependencies
run: pacman -Sy --noconfirm arch-install-scripts zsh docker
- name: Build aios
run: zsh ./build.zsh
- name: Push to GitHub Container Registry
run: |
tar -C ./root.x86_64 -c . | docker import - syui/aios
echo "${{ env.APP_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker tag syui/aios ghcr.io/syui/aios
docker push ghcr.io/syui/aios
- name: Create new release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ env.APP_TOKEN }}
with:
name: latest
tag_name: latest
files:
aios.tar.gz