长大了自己会删,先让我测试一下
All checks were successful
Test Workflow / hello_world (push) Successful in 4s

This commit is contained in:
Pythagodzilla 2026-01-09 00:54:04 +08:00
parent 2fe580eff4
commit c04e8522ea

View File

@ -1,36 +1,12 @@
name: Generate Release name: Test Workflow
on: on:
push: push:
branches: branches:
- chrome-docker - chrome-docker
permissions: write-all
jobs: jobs:
release_zip: hello_world:
name: Release Chromium Docker Image runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps: steps:
- name: Checkout code - name: Hello World Action
uses: actions/checkout@v4 run: echo "Hello, World!"
- name: Create Zip
shell: bash
run: |
set -euo pipefail
REPO_NAME="${GITHUB_REPOSITORY##*/}"
TAG_NAME="${GITHUB_REF_NAME}"
ZIP_NAME="${REPO_NAME}-${TAG_NAME}.zip"
echo "ZIP_NAME=${ZIP_NAME}" >> "$GITHUB_ENV"
mkdir -p dist
zip -r "dist/${ZIP_NAME}" . \
-x ".git/*" \
-x "dist/*"
- name: Upload Release Zip
uses: softprops/action-gh-release@v2
with:
files: dist/${{ env.ZIP_NAME }}