mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
Update docker-image.yml
This commit is contained in:
parent
e097b3a575
commit
a8effcf064
1 changed files with 13 additions and 13 deletions
26
.github/workflows/docker-image.yml
vendored
26
.github/workflows/docker-image.yml
vendored
|
@ -1,13 +1,13 @@
|
||||||
|
|
||||||
on:
|
on: #指定触发 workflow 的事件
|
||||||
push:
|
push: #当代码推送时触发
|
||||||
|
|
||||||
jobs:
|
jobs: #定义工作流程
|
||||||
build:
|
build: #工作流名称为 build
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04 #使用 Ubuntu 22.04 环境执行
|
||||||
container:
|
container: #定义容器
|
||||||
image: archlinux:latest
|
image: archlinux:latest #使用 Arch Linux 镜像
|
||||||
steps:
|
steps: #定义工作流程中的步骤
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pacman -Syyu --noconfirm \
|
pacman -Syyu --noconfirm \
|
||||||
|
@ -18,11 +18,11 @@ jobs:
|
||||||
python-pip \
|
python-pip \
|
||||||
python-crcmod
|
python-crcmod
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout #拉取代码
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3 #使用 GitHub Actions 提供的 checkout 动作
|
||||||
|
|
||||||
- name: safe.directory
|
- name: safe.directory #设置 git 的 safe.directory 配置
|
||||||
run: git config --global --add safe.directory /__w/uv-k5-firmware-custom/uv-k5-firmware-custom
|
run: git config --global --add safe.directory /__w/uv-k5-firmware-chinese/uv-k5-firmware-chinese
|
||||||
|
|
||||||
- name: Make
|
- name: Make
|
||||||
run: make
|
run: make
|
||||||
|
@ -42,7 +42,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: firmware.packed.bin
|
file: firmware.packed.bin
|
||||||
asset_name: egzumer_$tag.packed.bin
|
asset_name: LoseHu_$tag.bin
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ github.ref }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
release_name: release ${{ github.ref_name }}
|
release_name: release ${{ github.ref_name }}
|
||||||
|
|
Loading…
Reference in a new issue