Skip to content

Commit 1e492c5

Browse files
committed
update: workflow
1 parent 09322b1 commit 1e492c5

2 files changed

Lines changed: 28 additions & 34 deletions

File tree

.github/workflows/attach-zip-to-draft.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Auto Upload ZIP to Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
attach-zip:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Install zip
16+
run: sudo apt-get update && sudo apt-get install -y zip
17+
18+
- name: Create ZIP file
19+
run: |
20+
zip -r SpaceTheme_for_Steam.zip . \
21+
-x "*.git*" ".github/*" "_assets/*" "README.md" ".gitignore"
22+
23+
- name: Upload ZIP to release
24+
uses: softprops/action-gh-release@v1
25+
with:
26+
files: SpaceTheme_for_Steam.zip
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)