Skip to content

Commit

Permalink
Create upload
Browse files Browse the repository at this point in the history
  • Loading branch information
x20888450 authored Dec 3, 2024
1 parent 07f4a97 commit d632189
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/upload
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: upload

on:
workflow_dispatch:
inputs:
release:
description: '是否发布新版本'
required: false
default: 'false'
version:
description: '发布版本号'
required: false
default: 'v1.0'

jobs:
download-and-upload:
runs-on: ubuntu-latest

steps:
# 下载目标文件
- name: Download Artifact
run: |
curl -L Polaris-Obfuscators.zip "https://github.com/x20888450/Polaris-Obfuscators/actions/runs/12135866683/artifacts/2266363106"
#unzip artifact.zip -d artifact_content

# 发布 Release
- name: Upload Release
if: github.event.inputs.release == 'true' && success() && !cancelled()
uses: ncipollo/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.event.inputs.version }}
tag: ${{ github.event.inputs.version }}
body: 这是通过 GitHub Actions 自动发布的版本。
artifacts: "Polaris-Obfuscators.zip"
allowUpdates: true
makeLatest: true
omitBodyDuringUpdate: true
replacesArtifacts: true

0 comments on commit d632189

Please sign in to comment.