Skip to content

Update packages.x86_64 #31

Update packages.x86_64

Update packages.x86_64 #31

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 1 * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
container:
image: archlinux/archlinux
volumes:
- /home/runner/work/myarch/myarch:/tmp/myarch
options: "--privileged"
# The type of runner that the job will run on
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: rankmirrors
run: |
pacman -Sy --noconfirm --needed pacman-contrib
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
sed -i 's/^#Server/Server/g' /etc/pacman.d/mirrorlist.backup
rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
# Runs a single command using the runners shell
- name: Install requirements
run: pacman -Sy archiso --needed --noconfirm
# Runs a set of commands using the runners shell
- name: Build my distro
run: mkarchiso -v -w work -o out .
- name: Rename iso
run: |
cd out
mv myarch-*-x86_64.iso myarch-$(date +%Y.%m.%d)-x86-64_VTGRUB2.iso
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: myarch-x86_64
path: out
release:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- name: Get current date
env:
TZ: "Asia/Tokyo"
id: date
run: |
echo "date=$(date +'%Y-%m-%dT%R %:z')" >> $GITHUB_OUTPUT
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: myarch-x86_64
- name: Create release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_id }}
name: ${{ steps.date.outputs.date }}
draft: false
prerelease: false
files: |
myarch-*.iso