os/.github/workflows/release.yml

42 lines
1006 B
YAML
Raw Normal View History

2024-02-12 01:18:52 +00:00
name: release
on:
2024-02-12 01:29:53 +00:00
workflow_dispatch:
2024-02-12 01:18:52 +00:00
push:
2024-02-12 01:21:19 +00:00
branches:
2024-02-12 01:18:52 +00:00
- main
2024-02-12 01:21:19 +00:00
schedule:
- cron: '0 0 * * *'
2024-02-12 01:18:52 +00:00
2024-02-12 01:29:53 +00:00
permissions:
contents: write
2024-02-12 01:18:52 +00:00
2024-02-12 01:29:53 +00:00
jobs:
release:
name: Release
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
pacman -Syuu --noconfirm base-devel archiso docker
./build.zsh gh
mv *.tar.gz ./aios-bootstrap.tar.gz
systemctl start docker
docker login -u=$DOCKER_USER -p=$DOCKER_PASSWORD
tar -C ./root.x86_64 -c . | docker import - syui/aios
docker push syui/aios
- name: Create new release
uses: softprops/action-gh-release@v1
with:
name: Release latest
tag_name: latest
files:
aios-bootstrap.tar.gz