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:
|
||||
push:
|
||||
on: #指定触发 workflow 的事件
|
||||
push: #当代码推送时触发
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: archlinux:latest
|
||||
steps:
|
||||
jobs: #定义工作流程
|
||||
build: #工作流名称为 build
|
||||
runs-on: ubuntu-22.04 #使用 Ubuntu 22.04 环境执行
|
||||
container: #定义容器
|
||||
image: archlinux:latest #使用 Arch Linux 镜像
|
||||
steps: #定义工作流程中的步骤
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pacman -Syyu --noconfirm \
|
||||
|
@ -18,11 +18,11 @@ jobs:
|
|||
python-pip \
|
||||
python-crcmod
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Checkout #拉取代码
|
||||
uses: actions/checkout@v3 #使用 GitHub Actions 提供的 checkout 动作
|
||||
|
||||
- name: safe.directory
|
||||
run: git config --global --add safe.directory /__w/uv-k5-firmware-custom/uv-k5-firmware-custom
|
||||
- name: safe.directory #设置 git 的 safe.directory 配置
|
||||
run: git config --global --add safe.directory /__w/uv-k5-firmware-chinese/uv-k5-firmware-chinese
|
||||
|
||||
- name: Make
|
||||
run: make
|
||||
|
@ -42,7 +42,7 @@ jobs:
|
|||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: firmware.packed.bin
|
||||
asset_name: egzumer_$tag.packed.bin
|
||||
asset_name: LoseHu_$tag.bin
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
release_name: release ${{ github.ref_name }}
|
||||
|
|
Loading…
Reference in a new issue