This commit is contained in:
syui 2024-02-12 10:29:53 +09:00
parent fe811ac2d9
commit dab6f6dfa2
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -1,38 +1,41 @@
name: release name: release
on: on:
workflow_dispatch:
push: push:
branches: branches:
- main - main
schedule: schedule:
- cron: '0 0 * * *' - cron: '0 0 * * *'
permissions:
contents: write
jobs: jobs:
build: release:
name: Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: archlinux:base image: archlinux:latest
options: --privileged steps:
- name: Checkout
- name: install uses: actions/checkout@v3
run: pacman -Syyu --noconfirm archiso docker - name: Initialize
- name: checkout
uses: actions/checkout@v4
- name: build
env: env:
DOCKER_USER: ${{ secrets.DOCKER_USER }} DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: | run: |
pacman -Syuu --noconfirm base-devel archiso docker
./build.zsh gh ./build.zsh gh
mv *.tar.gz ./aios-bootstrap.tar.gz
systemctl start docker systemctl start docker
docker login -u=$DOCKER_USER -p=$DOCKER_PASSWORD docker login -u=$DOCKER_USER -p=$DOCKER_PASSWORD
tar -C ./root.x86_64 -c . | docker import - syui/aios tar -C ./root.x86_64 -c . | docker import - syui/aios
docker push syui/aios docker push syui/aios
- name: Create new release
- name: bootstrap uses: softprops/action-gh-release@v1
uses: actions/upload-artifact@v4
with: with:
name: aios-bootstrap name: Release latest
path: ./*.tar.gz tag_name: latest
files:
aios-bootstrap.tar.gz