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:
runs-on: ubuntu-latest name: Release
container: runs-on: ubuntu-latest
image: archlinux:base container:
options: --privileged image: archlinux:latest
steps:
- name: install - name: Checkout
run: pacman -Syyu --noconfirm archiso docker uses: actions/checkout@v3
- name: Initialize
- name: checkout env:
uses: actions/checkout@v4 DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: build run: |
env: pacman -Syuu --noconfirm base-devel archiso docker
DOCKER_USER: ${{ secrets.DOCKER_USER }} ./build.zsh gh
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} mv *.tar.gz ./aios-bootstrap.tar.gz
run: | systemctl start docker
./build.zsh gh docker login -u=$DOCKER_USER -p=$DOCKER_PASSWORD
systemctl start docker tar -C ./root.x86_64 -c . | docker import - syui/aios
docker login -u=$DOCKER_USER -p=$DOCKER_PASSWORD docker push syui/aios
tar -C ./root.x86_64 -c . | docker import - syui/aios - name: Create new release
docker push syui/aios uses: softprops/action-gh-release@v1
with:
- name: bootstrap name: Release latest
uses: actions/upload-artifact@v4 tag_name: latest
with: files:
name: aios-bootstrap aios-bootstrap.tar.gz
path: ./*.tar.gz